figma.fileKey undefined in private plugin

Is it a bug in figma.fileKey API ? I’m sure i have set enablePrivatePluginApi in my manifest.json.

So how can i solve this problem?

1 Like

same problem… please @me if there is any solutions! Thanks a lot!

Are you sure you are publishing the plugin privately to your Figma Organization and not publicly to the Figma Community?

hi~ yes! I choose to publish it to the first option(see the picture below), and figma.fileKey returns correct value when I run it locally, however returns ‘undefined’ when I run the published version.

Is there any solution to this problem?

Try reaching out to Figma support, seems like a bug.