Skip to content
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

Some token references could not be found #1186

Closed
okadurin opened this issue May 8, 2024 · 2 comments
Closed

Some token references could not be found #1186

okadurin opened this issue May 8, 2024 · 2 comments

Comments

@okadurin
Copy link

okadurin commented May 8, 2024

Hi all,
after migrating style-dictionary from v3 to 4.0.0-prerelease.26 I got the error:

../node_modules/style-dictionary/lib/StyleDictionary.js:451
      throw new Error(err);
            ^

Error: 
Reference Errors:
Some token references (48) could not be found.

Apparently I missed something in the migration. Any suggestion on what could be the reason what I might be missing?

@jorenbroekema
Copy link
Collaborator

Can you share your style-dictionary script/config? I can't think of what might cause sudden reference errors to be honest

@okadurin
Copy link
Author

okadurin commented May 9, 2024

I am closing the issue as it is not related to style-dictionary. There is a script on my side which was messing with the source json file where tokens are located. At some point the script was refreshing the json file at the same time thestyle-dictionary was building the platform. That was the reason it stated it could not find some tokens.

@okadurin okadurin closed this as completed May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants