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

Error: unknown transformGroup "custom/web" found in platform "web": #292

Closed
lusarz opened this issue Jun 15, 2019 · 7 comments
Closed

Error: unknown transformGroup "custom/web" found in platform "web": #292

lusarz opened this issue Jun 15, 2019 · 7 comments

Comments

@lusarz
Copy link
Contributor

lusarz commented Jun 15, 2019

Steps to reproduce:

cd ~/github
git clone [email protected]:amzn/style-dictionary.git
npm install
cd ~/github/style-dictionary/examples/advanced/custom-transforms
~/github/style-dictionary/bin/style-dictionary build

Output:

web
/home/lukasz/github/style-dictionary/lib/transform/config.js:49
  throw new Error(err);
  ^

Error: 
Unknown transformGroup "custom/web" found in platform "web":
"custom/web" does not match the name of a registered transformGroup.

at transformConfig (/home/lukasz/github/style-dictionary/lib/transform/config.js:49:13)
at Object.buildPlatform (/home/lukasz/github/style-dictionary/lib/buildPlatform.js:51:24)
at /home/lukasz/github/style-dictionary/lib/buildAllPlatforms.js:33:10
at /home/lukasz/github/style-dictionary/node_modules/lodash/lodash.js:4911:15
at Function.forIn (/home/lukasz/github/style-dictionary/node_modules/lodash/lodash.js:12951:11)
at Object.buildAllPlatforms (/home/lukasz/github/style-dictionary/lib/buildAllPlatforms.js:32:5)
at Command.styleDictionaryBuild (/home/lukasz/github/style-dictionary/bin/style-dictionary:85:21)
at Command.listener (/home/lukasz/github/style-dictionary/node_modules/commander/index.js:315:8)
at Command.emit (events.js:197:13)
at Command.parseArgs (/home/lukasz/github/style-dictionary/node_modules/commander/index.js:654:12)
@dbanksdesign
Copy link
Member

Because that example shows how to write custom transforms, you will need to use the node module rather than just calling the CLI command. That example has a npm script defined, 'build', which you will need to run instead, which will run this file:
https://github.com/amzn/style-dictionary/blob/master/examples/advanced/custom-transforms/build.js

Let me know if you have any other issues!

@lusarz
Copy link
Contributor Author

lusarz commented Jun 17, 2019

Okay, now it works :)

I would like to get involved in the project - do you recommend any issue that I could take care of ?

@dbanksdesign
Copy link
Member

Almost any issue would be good to start. What kind of work are you thinking about? Our docs could always use improving, like #286. If you want something easy and mundane, #281 is pretty easy. Or if you have an idea for an example, we are always looking for new examples.

@chazzmoney
Copy link
Collaborator

Should we add in some kind of note on that example to use the npm build?

@chazzmoney
Copy link
Collaborator

Also, looking forward to more contributions from you @lusarz - thanks!

@dbanksdesign
Copy link
Member

Can we close this issue out?

@lusarz
Copy link
Contributor Author

lusarz commented Jul 2, 2019

Yes

@lusarz lusarz closed this as completed Jul 2, 2019
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

3 participants