design-tokens icon indicating copy to clipboard operation
design-tokens copied to clipboard

export design token file: Cannot read properties of null (reading 'r')

Open kaitlynhova opened this issue 2 years ago • 8 comments

Description

Figma Version: 114.6.1

Screen Shot 2022-05-25 at 9 37 32 AM

  1. select "export design token file"
  2. Press "Save & Export" button
  3. See: modal doesn't close and an error code is printed into the console.

kaitlynhova avatar May 25 '22 17:05 kaitlynhova

Hey, so the plugin seems to not find any color styles. You do have colors styles. You do not by any chance have only color styles with a disabled / hidden prefix? Can you send a screenshot of the settings screen and maybe the opened color styles on the right sidebar?

This would help me to diagnose the issue.

lukasoppermann avatar May 25 '22 17:05 lukasoppermann

thank you 🙏 what screen is the settings screen? We have colors defined and printed out in the right sidebar and don't have disabled styles

kaitlynhova avatar May 25 '22 17:05 kaitlynhova

If you just go to "Design Tokens > Settings" that is the screen.

And can you please still send a screenshot of the opened colors styles? Thank you.

lukasoppermann avatar May 25 '22 17:05 lukasoppermann

Here is the settings screen: Screen Shot 2022-05-25 at 10 32 23 AM

I don't think I can share the color styles publicly, though. the tokens are named like "Pink/pink-100" though

kaitlynhova avatar May 25 '22 17:05 kaitlynhova

Hey, that all makes sense. I am assuming the styles have only one color layer, correct?

You are not using aliases, are you?

lukasoppermann avatar May 25 '22 17:05 lukasoppermann

Hey @kaitlynhova any updates here? Does the problem persist? Can you create an example file with the issue so that I can test it myself?

lukasoppermann avatar Jun 15 '22 13:06 lukasoppermann

Thank you for checking in! The problem has persisted but we found a work around by using a different Figma file that works for some reason 🙏

kaitlynhova avatar Jun 16 '22 20:06 kaitlynhova

@kaitlynhova that is weird. And you have all colors in this new file as well? No color that was only in the old file that could produce this error?

lukasoppermann avatar Jun 17 '22 06:06 lukasoppermann