Figma Support Forum

Error occurs when open Figma plugin before the design draft is loaded

Hi, our team is developing our Figma plugin. Each time we click Menu > Plugins > Development > our plugin before the design draft is loaded, the error above occurs. Then even if we wait until the design draft is loaded, we cannot call up any plugin any more. The same error occurs. This problem also exists in some other plugins in the community.

I wonder if this is a bug? Is there any way to avoid this?

This is my screen recording:

Any help would be greatly appreciated.

Why are you even doing this? :sweat_smile: I doubt any users would try to open the plugin before the file is loaded. Especially because it’s possible only on Mac on the desktop app and just for a second.

Okay. This is a question from our users. I just wonder if there is a better solution.
Thanks for your reply. :smile: