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

build command with --platform option causes CLI to crash #1409

Open
juzerzarif opened this issue Dec 10, 2024 · 1 comment · May be fixed by #1416
Open

build command with --platform option causes CLI to crash #1409

juzerzarif opened this issue Dec 10, 2024 · 1 comment · May be fixed by #1416

Comments

@juzerzarif
Copy link

If you run the style-dictionary build CLI command with the --platform option, the CLI crashes with the error:

file:///Users/my-project/node_modules/style-dictionary/bin/style-dictionary.js:129
    return Promise.all(options.platforms.map((platform) => sd.buildPlatform(platform)));
                                         ^

TypeError: Cannot read properties of undefined (reading 'map')

It looks like maybe a typo here - https://github.com/amzn/style-dictionary/blob/main/bin/style-dictionary.js#L129 ? options.platforms instead of options.platform?

@jorenbroekema jorenbroekema linked a pull request Dec 17, 2024 that will close this issue
@jorenbroekema
Copy link
Collaborator

jorenbroekema commented Dec 17, 2024

Fixing it here #1416 , thanks for reporting the bug!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants