Skip to main content

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.

Be the first to reply!

Reply