Then I built the project and went into figma and added this manifest as development-widget.
Once done, figma complains about this error: "Error: widget missing call to figma.widget.register"
Inspecting the generated build/ui.js and build/main.js files I indeed cannot find this call in there.
Manually adding the line figma.widget.register(Plugin) to the end of the ui.tsx file didn't help.
Hi!
I tried getting started with create-figma-plugin but have troubles getting it to work. My goal is it to create a figma widget, rather than a plugin.
These were my steps:
npx --yes create-figma-plugin
in my terminal and ran itInspecting the generated
build/ui.js
andbuild/main.js
files I indeed cannot find this call in there. Manually adding the linefigma.widget.register(Plugin)
to the end of theui.tsx
file didn't help.Am I doing something wrong? Thanks for your help!