importVariableByKeyAsync not working in Dev mode

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.



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

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