Skip to main content
carter1
New Member
March 7, 2026
Question

Getting an error when using figma.getNodeById, even though all functions in my plugin have been updated to async and everything works perfectly when running locally.

  • March 7, 2026
  • 1 reply
  • 47 views

I'm getting an error when calling figma.getNodeById, even though all functions in my plugin have been updated to async. The plugin works perfectly in my local environment and my manifest includes "documentAccess": "dynamic-page"), but the error only appears in the published version. The code.js in the dist folder is definitely using lastest build with the async functions. I've tried republishing multiple times, so it feels like a publishing issue,  almost as if Figma is still serving an older build.

The full error is: Error: in getNodeById: Cannot call with documentAccess: dynamic-page. Use figma.getNodeByIdAsync instead. at <anonymous> (PLUGIN_1559_SOURCE:217:47)

this is the plugin: https://www.figma.com/community/plugin/1137823695947414493/quick-table

Happy to submit code for review.

 

This topic has been closed for replies.

1 reply

carter1
carter1Author
New Member
March 8, 2026

fixed, All handlers now look up frames from the cache instead of calling getNodeById/getNodeByIdAsync. as the workaround