RedMadRobot / figma-export

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

Error when export Typography #126

Closed voragomod closed 2 years ago

voragomod commented 2 years ago

When I try export typography get error, at the same time colors, icons and pictures are loaded perfectly, thank you very much!

Error: figma-export typography

2021-10-30T13:01:12+0300 info com.redmadrobot.figma-export : Using FigmaExport 0.29.0 to export typography. 2021-10-30T13:01:12+0300 info com.redmadrobot.figma-export : Fetching text styles. Please wait... Error: valueNotFound(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "nodes", intValue: nil), _JSONKey(stringValue: "329:9708", intValue: nil), CodingKeys(stringValue: "document", intValue: nil), CodingKeys(stringValue: "style", intValue: nil), CodingKeys(stringValue: "fontPostScriptName", intValue: nil)], debugDescription: "Expected String value but found null instead.", underlyingError: nil))

Our typography: Снимок экрана 2021-10-30 в 13 05 16

subdan commented 2 years ago

Hello. Could you please show me your figma-export.yaml file?

Is it possible to give me an access to your Figma file? If no, could you please create a new one and copy text styles into it?

voragomod commented 2 years ago

The problem definitely cannot be in figma-export.yaml, bcs if I set test project id from article I successfully fetch fonts.

I'll ask our designer to make a project with only fonts and give an identifier, is that okay?

Снимок экрана 2021-11-01 в 00 57 41

subdan commented 2 years ago

I'll ask our designer to make a project with only fonts and give an identifier, is that okay?

Yes.

voragomod commented 2 years ago

Hi, test project: https://www.figma.com/file/N8ZkMr3BVjoZZR9BE33Whk/Typography-TEST?node-id=0%3A1

subdan commented 2 years ago

I've found a bug, fix it and release a new version. Please update to the 0.31.1 and check again.

voragomod commented 2 years ago

Great, now everything works, thanks a lot!