Skip to main content
Solved

Unable to load code: Error at Object.t.getLocalPluginCode

  • September 7, 2021
  • 1 reply
  • 2716 views

rix

The plugin compiles correctly.
When I run it in Figma, I get an error in the console:

Error: Unable to load code: Error
    at Object.t.getLocalPluginCode (figma_app.a55238a708ba23c4413fcc91a50cd571.min.js.br:853)
    at async figma_app.a55238a708ba23c4413fcc91a50cd571.min.js.br:1685
    at async Object.j [as runPlugin] (figma_app.a55238a708ba23c4413fcc91a50cd571.min.js.br:1685)

macOS Catalina 10.15.7

Best answer by Gleb

Try to remove the plugin from Figma, restart it, then add the plugin back again. Looks like at some point Figma lost a reference to the plugin code.

If it still gives you the error, check your manifest and make sure your code.js file is at the correct path that you specified in the manifest.json.

View original

1 reply

Gleb
  • Power Member
  • 4706 replies
  • Answer
  • September 7, 2021

Try to remove the plugin from Figma, restart it, then add the plugin back again. Looks like at some point Figma lost a reference to the plugin code.

If it still gives you the error, check your manifest and make sure your code.js file is at the correct path that you specified in the manifest.json.


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