Closed psharanda closed 1 year ago
I've created a PR with a potential fix
Can you share a GitHub repo with a minimal reproduction of the issue?
Here is the minimal plugin which reproduces the issue figma_plugin_repro.zip
Possible to put the files in that zip as either a repo or a GitHub gist? Thanks!
Ok, here is the repro repo https://github.com/psharanda/create-figma-plugin-codegen-issue And just in case, here is the PR which fixes the issue https://github.com/yuanqing/create-figma-plugin/pull/203
Thanks! Can confirm that this is a bug
Hi @yuanqing, First of all thanks a lot for creating such a useful toolkit!
Here is my issue. I have an existing plugin which has a menu with a number of features that can be launched from it. Now, I'd like to add a codegen feature for my plugin. I've added all the necessary fields to the package.json
I can see my plugin in a Dev Mode in codegen section, but whenever I select something it fails with exception.
commandId
in that case is a string'generate'
As a workaround I was able to patch the generated
build/main.js
by taking in account'generate'
command which comes fromfigma.command
:I am wondering if this can be fixed on official level.
Thanks!