Skip to main content
Question

importVariableByKeyAsync not working in Dev mode

  • July 17, 2023
  • 1 reply
  • 224 views

I have a plugin that in the design/default mode is able to call importVariableByKeyAsync correctly and get the desired object back; but when making this same call with the same variable ID in dev mode for codegen this fails.

Is anyone aware if it is expected behavior for a call to importVariableByKeyAsync to not work in dev mode or any potential fixes / work-arounds? I know that document access is limited in dev mode but don’t see why this wouldn’t work.

Thanks!

manifest.json:

‘’’
“editorType”: [“figma”, “dev”],
“enablePrivatePluginApi”: true,
“capabilities”: [“codegen”],
“permissions”: [“teamlibrary”]
‘’’

This topic has been closed for comments

tank666

The import functions from the API are making changes to the document, which plugins in read-only mode cannot do.


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