Skip to main content
Question

plugin crash when scanning invisible nodes in design mode


ppppp

Hi. I developed a plugin myself. I try to scan all the nodes in the page in design mode:

const nodes = selection?.findAll?.() ?? []

The plugin will crash when it I want to get further information about the invisible nodes and the error log is:

xxx : The node (instance sublayer or table cell) with id "xxx" does not exist.

It seems that the Figma plugin can scan the invisible nodes, but when I want to get some detail information about the nodes, the plugin can’t find them.

It works successfully when I restart the plugin or in dev mode(I set skipInvisibleInstanceChildren to false). However, when I reopened the Figma file, it failed again in design mode.

I tried this but it also failed:

figma.loadAllpagesAsync()
This topic has been closed for replies.

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