RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project
MIT License
727 stars 114 forks source link

When I run the figma-export command, it report following error #12

Closed fanthus closed 4 years ago

fanthus commented 4 years ago

➜ LJComponentManager git:(master) ✗ figma-export colors -i figma-export.yaml 2020-07-09T17:24:36+0800 info: Using FigmaExport to export colors. 2020-07-09T17:24:36+0800 info: Fetching colors. Please wait... Error: Figma API: Not found

fanthus commented 4 years ago

I already configure figma token in .zshrc file.

subdan commented 4 years ago

Hi. The error says that it can't find your Figma file. Please, check this property figma.lightFileId

fanthus commented 4 years ago

thanks, I have fixed the lightField, but it report the following error... (⊙︿⊙)

➜  LJComponentManager git:(master) ✗ figma-export images -i figma-export.yaml
2020-07-09T18:03:15+0800 info: Using FigmaExport to export images to Xcode project.
2020-07-09T18:03:15+0800 info: Fetching images info from Figma. Please wait...
Error: Figma API: {"params":["file_key"],"query":["ids"]} are required.
subdan commented 4 years ago

Figma API can't find image components.

Ensure that you have a frame with "Illustrations" name. The frame must contains a components. These components must be published to the Team Library.

fanthus commented 4 years ago

thanks