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.17k stars 291 forks source link

When i try to run this plugin it gives me error that Unexpected token #29

Open sanjeevkumar143 opened 4 years ago

sanjeevkumar143 commented 4 years ago

Syntax error on line 10: Unexpected token import { traverseLayers } from "./functions/traverse-layers";

steve8708 commented 4 years ago

hey @sanjeevkumar143 - can you add more context about how you are running into this issue? Are you running from a browser (if so what build tool - webpack, rollup, parcel, etc), node.js, other?

sanjeevkumar143 commented 4 years ago

no, I am using the Figma software after a lot of hours wasted I change my tsc.config file and made change "module":"udm" and it work all errors gone but now am facing another issue which is the plugin frozen https://prnt.sc/sus730 it's just loading nothing come up

sanjeevkumar143 commented 4 years ago

nothing come up in Figma console just stuck in loading

steve8708 commented 4 years ago

oh I see - you are running this locally. have you tried npm install && npm run dev from the root of this project before running the plugin in development mode?

sanjeevkumar143 commented 4 years ago

oh I see - you are running this locally. have you tried npm install && npm run dev from the root of this project before running the plugin in development mode?

yes i tried it