If a new Highlighter tool was used in the FigJam file, then plugins and widgets may encounter the Error: unsupported type in createVMObject: HIGHLIGHT
, which can lead to a complete stop of the plugin/widget. That is, functions such as findAll
, findOne
and others don’t work at the moment, and it is also impossible to get the children of the page (figma.currentPage.children
) and the selected node (figma.currentPage.selection
) if Highlighter layer is selected.
Steps to reproduce the problem
- Open or create a new FigJam file
- Select the Highlighter Tool (Shift + M) and draw a line
- Open the console
- Enter
figma.currentPage.findAll(node => console.log(node))
Expected result
The console will display a list of all nodes without errors.
Actual result
The console doesn’t display a complete list of nodes and an error is present:
Uncaught Error: in findAll: unsupported type in createVMObject: HIGHLIGHT
at PageNode.findAll
Additional information
The problem with GIF as MEDIA type has been resolved, but an error has appeared with the HIGHLIGHT type.
try {…} catch {…}
construction doesn’t help.