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

Chromatic CLI not building storybook #213

Closed
stefan-cross opened this issue Dec 3, 2020 · 8 comments · Fixed by #237
Closed

Chromatic CLI not building storybook #213

stefan-cross opened this issue Dec 3, 2020 · 8 comments · Fixed by #237
Labels
customer reported Tracking: This issue was reported through customer support

Comments

@stefan-cross
Copy link

stefan-cross commented Dec 3, 2020

Hello,

I am having issues getting chromatic cli to build the storybook after the intial run... It hangs and doesnt appear to create any artifacts in the /var/... folder. I raised this on SO the other day but thought it might be worth raising here also.

In order to get chromatic to build the storybook I have to exectute the following:

./node_modules/.bin/chromatic --project-token=xxxxfooxxxx

Let me know if theres more info that might help... Or if you would rather the detials were lifted out of the SO post...

https://stackoverflow.com/questions/65094064/chromatic-cli-not-building-storybook

@jtloomos jtloomos added the customer reported Tracking: This issue was reported through customer support label Jan 5, 2021
@jtloomos
Copy link

jtloomos commented Jan 5, 2021

This has been reported by another user via Intercom (https://app.intercom.com/a/apps/zj7sn9j1/inbox/inbox/conversation/27253892088)

@sean-rallycry
Copy link

sean-rallycry commented Jan 6, 2021

If it is the same issue I am encountering, I see the following in the build-storybook.log:

Starting: --silent build-storybook -- --output-dir C:\Users\refuz\AppData\Local\Temp\chromatic--8916-TLKmiTwitUfY
node: bad option: --silent

I am running node v15.5.1, yarn v1.22.4, and npx v7.3.0, running the command from Powershell.

@sean-rallycry
Copy link

I believe this line of code is why the workaround proposed by the OP is effective:

clientArgs: [isJsPath ? npmExecPath : '', isYarn ? '' : 'run', '--silent'].filter(Boolean),

@ghengeveld
Copy link
Member

ghengeveld commented Jan 7, 2021

I've made a prerelease for the fix, can you verify it works? yarn add chromatic@5.5.1-dev.0

Update, I've now also added a timeout of 10 minutes for running the build script. yarn add chromatic@5.5.1-dev.1

@stefan-cross
Copy link
Author

Awesome, I can confirm that has fixed things for myself, updated https://stackoverflow.com/questions/65094064/chromatic-cli-not-building-storybook/65633940#65633940

@stefan-cross
Copy link
Author

Not sure what the process is now, shall I close this?

@ghengeveld
Copy link
Member

No need, it'll be auto-closed when the PR gets merged.

@manoadamro
Copy link

same problem in v5.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer reported Tracking: This issue was reported through customer support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants