BuilderIO / figma-html

Builder.io for Figma: AI generation, export to code, import from web
https://www.figma.com/community/plugin/747985167520967365
MIT License
3.13k stars 291 forks source link

Launched locally and it does not generate code or json #111

Closed galvotas closed 2 years ago

galvotas commented 2 years ago

Describe the bug Error when trying to either generate or download code via tool. I also got error when adding plugin according to readme file.

To Reproduce Steps to reproduce the behavior:

  1. Follow Readme file
  2. Running project with npm run dev(useDev is set to true)
  3. Opening figma app and selecting some item, set it to auto layout. Then clicking right and Plugins > Development > HTML <> FIGMA
  4. Clicking download json or generate code and always receive the same error

Expected behavior Expected to test the tool and try downloading or generating the code.

Screenshots

Screenshot 2022-07-14 at 21 36 06 Screenshot 2022-07-14 at 21 48 15
samijaber commented 2 years ago

useDev should not be set to true for outside folks. It is only set to true by internal Builder employees and will break your local env if you do so, so you'll want to keep it false