Skip to main content
Question

importVariableByKeyAsync not working in Dev mode

  • July 17, 2023
  • 1 reply
  • 266 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 replies.

1 reply

tank666
  • July 17, 2023

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