Skip to main content
Question

getMainComponentAsync stops execution


YVdM

Hi,

I am looking into some docs to create a plugin … I would like to make another “Copy as” feature to match our component development platform.

 

I took the tutorials (orange rectangle party), added webpack bundling and started exploring the API.

When using getMainComponentAsync from one of the nodes it goes wrong, the function returns nothing, I get no exceptions and execution just stops.

It’s weird ‘cause I can do this from the console in figma but not from my plugin, any suggestions?

Is a plugin the right way to achieve what I want ?

 

Oh, I have dynamic-page set … otherwise the asyncs wont work ;-)

 

Tx

Y.

0 replies

Be the first to reply!

Reply


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