amzn / style-dictionary

A build system for creating cross-platform styles.
https://styledictionary.com
Apache License 2.0
3.94k stars 560 forks source link

Unknown transform "name/cti/kebab" #1311

Closed traed closed 3 months ago

traed commented 3 months ago

Getting the following error when trying to use this transformer. No clue what this means. Please help?

Error: Unknown transform "name/cti/kebab" found in platform "tailwind": "name/cti/kebab" does not match the name of a registered transform.

at transformConfig (file:///Users/mattias/Code/c2-tokens-test/node_modules/.pnpm/style-dictionary@4.0.1/node_modules/style-dictionary/lib/transform/config.js:95:11)
at StyleDictionary.getPlatform (file:///Users/mattias/Code/c2-tokens-test/node_modules/.pnpm/style-dictionary@4.0.1/node_modules/style-dictionary/lib/StyleDictionary.js:561:28)
at async StyleDictionary.buildPlatform (file:///Users/mattias/Code/c2-tokens-test/node_modules/.pnpm/style-dictionary@4.0.1/node_modules/style-dictionary/lib/StyleDictionary.js:840:44)
at async Promise.all (index 0)
at async StyleDictionary.buildAllPlatforms (file:///Users/mattias/Code/c2-tokens-test/node_modules/.pnpm/style-dictionary@4.0.1/node_modules/style-dictionary/lib/StyleDictionary.js:885:7)

Node.js v20.15.0

jorenbroekema commented 3 months ago

The built-in name transforms have been renamed to remove the /cti part so it's just name/kebab now. Need to adjust your config to use the correct name transform.

More info https://styledictionary.com/version-4/migration/#cti-reliance