Skip to main content
Question

figma.fileKey undefined in private plugin


fengweiyao

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?

4 replies

ruiyitang

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


Gleb
  • Power Member
  • 4708 replies
  • July 12, 2022

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


ruiyitang

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?


Gleb
  • Power Member
  • 4708 replies
  • July 12, 2022

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


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