figma-plugin-boilerplate icon indicating copy to clipboard operation
figma-plugin-boilerplate copied to clipboard

Unable to load code: Error

Open anggaputra opened this issue 3 years ago • 4 comments

I'm getting this error, any ideas how to solve it?

at Object.t.getLocalPluginCode (figma_app.a17c9af61a11939592442f35bc073493.min.js.br:834) at /file/wO07knr5bbR3yzgOnM5V2i/async https:/www.figma.com/figbuild-artifacts/figma_app.a17c9af61a11939592442f35bc073493.min.js.br:1384 at async Object.T [as runPlugin] (figma_app.a17c9af61a11939592442f35bc073493.min.js.br:1384)

thanks

anggaputra avatar Jun 15 '21 11:06 anggaputra

Can you try removing the id from the manifest file, re add your plugin to Figma and out in whatever I’d it generates to see if it fixes it?

On Jun 15, 2021, at 7:16 AM, Angga Putra @.***> wrote:

 I'm getting this error, any ideas how to solve it?

at Object.t.getLocalPluginCode (figma_app.a17c9af61a11939592442f35bc073493.min.js.br:834) at /file/wO07knr5bbR3yzgOnM5V2i/async https:/www.figma.com/figbuild-artifacts/figma_app.a17c9af61a11939592442f35bc073493.min.js.br:1384 at async Object.T [as runPlugin] (figma_app.a17c9af61a11939592442f35bc073493.min.js.br:1384)

thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

thomas-lowry avatar Jun 15 '21 12:06 thomas-lowry

I'm having the same issue, removing the id doesn't fix it :(

gonzalo-ux avatar Nov 01 '21 19:11 gonzalo-ux

+1

filipruisl avatar Dec 08 '21 15:12 filipruisl

You need to use the manifest.json from dist instead of src, because the relative path from code.js does not resolve from src, it's still code.ts there

PhilipWee avatar Feb 15 '22 01:02 PhilipWee