-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Exporting Figma Variables (BETA) using references to other variables throws an error #254
Comments
I have similar issues.. |
I have also seen that error; difference between Chrome inspector and Firefox inspector output I'm guessing - the |
Hey, thanks I can reproduce it. I will look into it asap. |
Fix should be available in version 66. Please reopen if it persists |
Unfortunately the latest release causes a faulty "No tokens to export" toast. The issue @Marvellanius and I had (we're colleagues) is still not resolved. |
Hey @bchipev can you try again, I hope I fixed it now. |
@lukasoppermann how would we ensure that the vesion running in Figma is the newest version? As of this morning, I'm still experiencing the same issue as reported ( |
Hey @Marvellanius, by closing and re-opening the figma tab you should normally get the latest version. |
Then I sadly have to report that the issue persists :( different PC, so pretty sure that should run the latest version then |
Hmm, weird, did you try it with a new file? With just one color variable and a another one that references this one? Or are you per chance using variables from another file? I think this is the issue. I can reproduce it. 🤔 |
Yes, I've tried with a new file, using just 2 variables, one with a hex-value for a color, the other referencing that variable Scratch that, the 2 variables in a new file do work in the export, even if cross-referencing from a different collection in the same file. I'll go see what the difference is with our project files vs my test-file and report back, as in our usecase we do define all the variables in the file from which we try to export. Given this, I'd expect it to work now 🤔 On that note; the error message also kind of confuses me; when exporting Variables, we're not dealing with |
Hey @Marvellanius it should now work with the tokens references from other files as well. Yes |
Yes! I just now had a working export while trying to reproduce my issue, so can confirm it now works! Thanks so much for the quick turnaround 😄 |
Hello there, Happy to ear it its working for some, as for myself I get : It works if I try with variables with no aliases, but as soon as I have some it doesn't. In this file we have primitives -> Raw Any help would be awesome. @lukasoppermann |
As the title states; When trying to
Save & Export
Figma Variables (BETA), we get the following error:I've been able to narrow it down to it being an issue with variables whose value references another variable.
To narrow it down, I exported all variables in our project with this plugin, which notably does not preserve references, tried to export Figma Variables with the Design Tokens plugin in the new file, which worked fine. Updated one of the variables to contain a reference to another variable as a value, and the above error occured.
Reproduce-file for the issue: https://www.figma.com/file/i9oPPuiKKceCgqMsmHwHsj/Design-Token-variable-export-reproduce
This worked fine at least as late as July 25th, so I suspect #253 might be the cause.
STR:
The text was updated successfully, but these errors were encountered: