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

CLI tokens build command fails on tokens created with tokens create #2540

Closed
unekinn opened this issue Sep 30, 2024 · 0 comments · Fixed by #2549
Closed

CLI tokens build command fails on tokens created with tokens create #2540

unekinn opened this issue Sep 30, 2024 · 0 comments · Fixed by #2549
Assignees
Labels
🐛 bug Something isn't working

Comments

@unekinn
Copy link
Contributor

unekinn commented Sep 30, 2024

Version number

1.0.0-next.34
1.0.0-next.33

Description of the bug

When building the created tokens, this happens:

Bulding tokens in ./design-tokens

🍱 Building typography
👷 theme - primary
👷 theme - secondary
file:///<example_dir>/node_modules/style-dictionary/lib/StyleDictionary.js:564
        throw new Error(err);
              ^

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

Steps To Reproduce

In an empty directory, run the following commands:

npx @digdir/designsystemet@1.0.0-next.34 tokens create \
   --accent "#007682" \
   --neutral "#003333" \
   --brand1 "#12404f" \
   --brand2 "#0054a6" \
   --brand3 "#942977" \
   --theme "theme" \
   --write
 npx @digdir/designsystemet@1.0.0-next.34 tokens build

See the crash.

Additional Information

Also fails on 1.0.0-next.33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant