mikaelvesavuori / figmagic

Figmagic is the missing piece between DevOps and design: Generate design tokens, export graphics, and extract design token-driven React components from your Figma documents.
https://docs.figmagic.com
MIT License
807 stars 71 forks source link

Elements generation issue #178

Closed RmnMatusevich closed 1 year ago

RmnMatusevich commented 1 year ago

When you generate elements from figma file give an error in each generated element (.tsx component).

To Reproduce Steps to reproduce the behavior:

  1. Clone repository https://github.com/mikaelvesavuori/figmagic-example
  2. Install dependencies
  3. Add project to your figma https://www.figma.com/community/file/821094451476848226
  4. Create .env with figma creds
  5. npx figmagic
  6. npx figmagic --syncElements,

Expected behavior Expected to get and generate elements from figma without issues with props in generated components.

Screenshots image image

mikaelvesavuori commented 1 year ago

Hi @RmnMatusevich!

I just released 4.5.7 that should fix this. See https://github.com/mikaelvesavuori/figmagic/releases/tag/v4.5.7