-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Stuck at "Running Design Tokens" #329
Comments
Hi @awasem, thanks for reporting the bug. Is there any chance you can share your figma variable structure? Thanks - Omar |
@awasem can you also share the plugin setting as well? |
I should also mention this file is using variables from two other files (tier 1 and tier 2) |
@0m4r my figma file is also a branch |
I can download my fig file locally and send you a copy if that might help in debugging this, is there a way to do this privately so I don't have to zip and post that publicly here? |
this is a good idea. The other option I was thinking of is this: The production code error message does not help to identify the part of the code that triggers it. |
@0m4r |
alright, I got the problem. one idea is to try replace that line with: const variableNameWithMode = mode ? `${collection}/${mode?.name}/${variable?.name}` : variableName and see if it still produces the result you need/expect. |
@awasem can you give a try to the code I have updated here: The issue is really what I suspected initially, when you reference a figma variable in another figma file (tier-1 and tier-2 in your case I guess) then some information cannot be resolved anymore, thus the error. If the fix I provided works, I open a PR for @lukasoppermann to review. Thanks! |
Hi @0m4r this worked thank you! I tried to make a PR but I got this error |
@awasem #330 is open and ready for review by @lukasoppermann |
I have been working with this file for months, it has always been able to export, I made some changes today and I am stuck after clicking "Export Design Token File" it just spends and says "Running Design Tokens". I can see in the console on the web where it gives errors after running the plugin.
"unhandled promise rejection: TypeError: cannot read property 'name' of undefined"
I am guessing that one of the changes I made is causing the export to fail. I tried undoing any changes, but I am still seeing this error and cannot export. Any idea what could be causing this?
The text was updated successfully, but these errors were encountered: