Skip to content
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

Cannot import plugins if filenames contain dashes (-) #368

Open
cairomassimo opened this issue Apr 30, 2024 · 1 comment
Open

Cannot import plugins if filenames contain dashes (-) #368

cairomassimo opened this issue Apr 30, 2024 · 1 comment

Comments

@cairomassimo
Copy link

When importing a development plugin whose manifest contains something like

  "main": "dist/plugin/figma-plugin.js",

the import process fails with Filename "dist/plugin/figma-plugin.js" not allowed, due to the filename not matching the regex on this line:

!/^[\w/]+(?:\.\w+)*\.\w+/.test(file.name))

It's not clear to me whether this limitation is inherited from Figma itself, or it's an artifact of Figma Linux implementation.

@LiamMartens
Copy link

@cairomassimo this looks like it's a bug; this works in the native Windows Figma app

ToxesFoxes added a commit to ToxesFoxes/figma-linux that referenced this issue May 28, 2024
ChugunovRoman pushed a commit that referenced this issue May 29, 2024
* fix: set appVersion to ignore version checking. Closes #371 #372 #373

* fix: Display jam and design page types inside app. Closes #369

* fix: Regex to match file path for importing extension. #368

* fix: Window opens while trying to open some urls after b89e095

* fix: Opens prototype or project from opened design in new tab instead of browser (#362)

* Update MainTab.ts

Fix opening some urls in window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants