-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin with menu and codegen doesn't work #202
Comments
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 |
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 |
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!
The text was updated successfully, but these errors were encountered: