Skip to main content
Question

"Error: unsupported type in createVMObject: HIGHLIGHT" when using the new Highlighter tool in FigJam

  • December 14, 2021
  • 2 replies
  • 465 views

tank666

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

  1. Open or create a new FigJam file
  2. Select the Highlighter Tool (Shift + M) and draw a line
  3. Open the console
  4. 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.

This topic has been closed for comments

2 replies

brsbl
Figmate
  • Figmate
  • 8 replies
  • December 15, 2021

Thanks for this report—we’re getting a fix for this out today!


tank666
  • Author
  • 4859 replies
  • December 15, 2021

Bug fixed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings