Skip to content

fix exceptions from missing graph nodes #842

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

Conversation

romainmenke
Copy link
Member

@romainmenke romainmenke commented Feb 7, 2023

Fixes :

Error: Unknown token. Make sure to provide all tokens used in aliases.

Two things went wrong here :

  1. copy/paste without sufficient cleanup
  2. gap in our test coverage

1: I copy/pasted the logic to detect cyclic dependencies from design tokens to other parts.
I didn't cleanup some specific logic that was only intended for design tokens. If a token is missing we throw in that plugin, that is fine because it has different heuristics.

Not fine at all in polyfill/fallback plugins.

2: Strangely we didn't have any tests for dependencies between custom props or custom media were finally a value is missing.

@romainmenke romainmenke changed the title fix missing exception from missing graph nodes fix exception from missing graph nodes Feb 7, 2023
@romainmenke romainmenke changed the title fix exception from missing graph nodes fix exceptions from missing graph nodes Feb 7, 2023
@romainmenke romainmenke force-pushed the fix-exception-from-missing-graph-nodes--gregarious-indian-star-tortoise-bc6945d6e6 branch from 60ba247 to dd20150 Compare February 7, 2023 21:47
…ssing-graph-nodes--gregarious-indian-star-tortoise-bc6945d6e6
@romainmenke romainmenke merged commit f026477 into main Feb 8, 2023
@romainmenke romainmenke deleted the fix-exception-from-missing-graph-nodes--gregarious-indian-star-tortoise-bc6945d6e6 branch February 8, 2023 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants