lukasoppermann / design-tokens

🎨 Figma plugin to export design tokens to json in an amazon style dictionary compatible format.
https://www.figma.com/community/plugin/888356646278934516/Design-Tokens
MIT License
971 stars 134 forks source link

Plugin not working #286

Closed laraamadeo closed 2 months ago

laraamadeo commented 1 year ago

I'm working in a big file with more or less 300 styles. When clicking to 'Export', nothing happens. However, in a file with less styles, it works. This is the error showing

image
katywatkins commented 1 year ago

I've just run into what seems very similar, if not the same. Nothing happens on export, but there's a very similar error in the console:

image
katywatkins commented 1 year ago

Follow up - turns out the error I ran into above was caused by a mode name that included parentheses. Changing the name fixed the problem.

lukasoppermann commented 1 year ago

Hey @laraamadeo we would need to work on narrowing in on the issue:

Can you send me a copy of all your styles? Is this possible? E.g. by exporting a Figma file and attaching it/sending it via email / creating a new file with only the styles and sharing it with me?

  1. Do you export variables?
  2. Do you have any styles with images / gradients / etc?
  3. Do you have any styles or variables with special characters in the names?
burn2delete commented 10 months ago

I seem to also have this issue and my variable names have both spaces and parentheses.

burn2delete commented 10 months ago

I was able to resolve my issue.

I updated my collection names to avoid any special characters. I also updated the plugin to support name conversion for the variable values, which is required when referencing other variables.

https://github.com/lukasoppermann/design-tokens/pull/301