Closed pinguet62 closed 4 months ago
Hi @pinguet62 , Thank you for your issue.
This problem has already been identified. There have been some discussions on support about it, for example:
As you've seen, the problem doesn't come from our library directly but from the glob library, which is itself a dependency of style-dictionary.
The solution you propose has already been tried and does not correct the problem.
The real solution would be to fix this problem on the style-dictionary side first.
We're aware of current developments on the style-dictionary side, and we'll update our package once version 4 of style-dictionary is stable, which isn't the case at the moment, as version 4 is still under development.
In the meantime (as you'll see from the links in the discussions above), we suggest that users who encounter (There are not many of them at ADEO at the moment.) this problem:
@mozaic-ds/vue-3/src/tokens
.Available if needed :v:
The real solution would be to fix this problem on the style-dictionary side first.
"réelle solution" ... pas vraiment !
Oui la root cause du bug est style-dictionary
qui n'a pas testé et respecté le SemVer.
ℹ️ Une bibliothèque et ses bibliothèques dont elle dépend représente un arbre de dépendances transitives.
Si 1 seule dépendance racine est boguée, il serait absurde que toute la ramification descendante soit boguée.
Dire "on ne corrige pas parce qu'on attend que la sous-sous-dépendance soit corrigée" : alors il n'y aurait quasiment aucune bibliothèque qui fonctionnerait, car il y a énormément de dépendances transitives et régulièrement des bugs.
👉 C'est pour cela que chaque bibliothèque doit définir précisément ses dépendance pour qu'elle fonctionne, notamment avec bonne version et la bonne "précision" (^
ou ~
ou fixe).
De plus, en admettons que corriger style-dictionary
soit "la réelle solution".
Ici le correctif style-dictionary@4.x.x
ne résoudrait pas le problème.
En effet, @mozaic-ds/tokens
déclare style-dictionary@^3.9.1
donc la version 4.x.x
ne sera pas appliquée.
👉 D'où le fait que c'est au niveau de @mozaic-ds/tokens
de définir la bonne version de sa dépendance : 1 fix en figeant style-dictionary@3.9.0
, et dans un 2nd temps un upgrade de version vers le correctif style-dictionary@^4.0.0
.
Either Install an inferior version of style-dictionary or glob directly in their project.
J'ai tenté ceci :
"dependencies": {
"style-dictionary": "3.9.0"
}
sans succès, car la dépendance @mozaic-ds/tokens
> style-dictionary
utilise toujours la version 3.9.2
.
The solution you propose has already been tried and does not correct the problem.
Je trouve ça étrange, car en définissant ceci :
"overrides": {
"@mozaic-ds/tokens": {
"style-dictionary": "3.9.0"
}
}
et ici cela surcharge la dépendance transitive @mozaic-ds/tokens
> style-dictionary
avec succès 👍
❓ Comment avez-vous testé ?
J'ai git clone adeo/mozaic-design-system
pour tenter un correctif, mais je ne maitrise/connait pas Lerna/Yarn.
❓ Connaitrais tu la commande pour mettre à jour la dépendance style-dictionary
dans packages/tokens/package.json
? (ex : yarn upgrade ...
)
Hi @pinguet62 , I don't know if you read my message correctly, but I explained that we were already proposing alternative solutions to users who encounter this problem (and who are in the minority to date), while the problem is corrected on the style-dictionary side and we update our package.
As for the rest of your comment, I'd rather not get into an endless debate.
@tiloyi #1563 😉
I am opening an issue for
Design Tokens
Package version
all?
Description
On Windows build of tokens doesn't work.
GitHub repository
No response
Mock-up(s)
No response
What happened?
On Windows:
What is expected?
On Linux:
To Reproduce
Very easy!!!
Code example
No response
Is this a regression?
Additional comments
Since
style-dictionary@3.9.1
: it upgrade ofglob
from7.2.0
to10.3.10
style-dictionary
issue: https://github.com/amzn/style-dictionary/issues/1066ℹ️ Will be fixed in
style-dictionary@4.0.0
.style-dictionary
fix: https://github.com/amzn/style-dictionary/pull/1070 But yet in beta version.So the solution is to freeze version in
packages/tokens/package.json
to3.9.0
.