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

Compatibility with npm 7 #217

Closed
kokiebisu opened this issue Dec 7, 2020 · 9 comments
Closed

Compatibility with npm 7 #217

kokiebisu opened this issue Dec 7, 2020 · 9 comments
Labels
bug Classification: Something isn't working customer reported Tracking: This issue was reported through customer support

Comments

@kokiebisu
Copy link

kokiebisu commented Dec 7, 2020

I am currently trying to publish storybook but the process keeps hanging on step 6: Building your Storybook.

スクリーンショット 2020-12-06 午後7 13 38 2

I tried running the build-storybook command alone and then it works.

build-storybook -- --output-dir /var/folders/b6/g83mw8h9531btnbcmd3s7dh80000gn/T/chromatic--84494-mYwHeFxGFSLu

I checked the build-storybook.log generated and it gives me this message.

Starting: --silent build-storybook -- --output-dir /var/folders/b6/g83mw8h9531btnbcmd3s7dh80000gn/T/chromatic--84494-mYwHeFxGFSLu
node: bad option: --silent

Thanks in advance for the help!

@kokiebisu kokiebisu changed the title Patch build keeps hanging on build Cannot publish storybook Dec 8, 2020
@tmeasday
Copy link
Member

tmeasday commented Dec 9, 2020

Hey @kokiebisu -- what version of npm or yarn are you using?

@kokiebisu
Copy link
Author

Thanks for the reply!
I’m using
Yarn: 1.22.5
Npm: 7.0.15

@tmeasday
Copy link
Member

Sounds like maybe a npm7 compatibility issue?

@kokiebisu in the meantime you can manually build your storybook and then run chromatic with the -d (or --storybook-build-dir) flag pointing to the build storybook directory.

@tmeasday tmeasday added bug Classification: Something isn't working customer reported Tracking: This issue was reported through customer support labels Dec 10, 2020
@dbvisel
Copy link

dbvisel commented Dec 10, 2020

I think the same thing is happening to me with NPM v7.0.14, Node v15.3.0. Will try with an older version of Node?

@tmeasday
Copy link
Member

Sure!

@kokiebisu
Copy link
Author

I was able to publish storybook but now I am getting a new error when I open storybook on chromatic. Does this have anything to do with the build?
スクリーンショット 2020-12-10 午後2 52 05

@kokiebisu
Copy link
Author

This was an issue on the storybook side.
storybookjs/storybook#12952

I also used yarn to get everything to work since npm gave me a bunch of issues. I think there are compatibility issues with npm 7 just as @tmeasday mentioned. I will close.

@tmeasday
Copy link
Member

Let me reopen for other users.

@tmeasday tmeasday reopened this Dec 11, 2020
@tmeasday tmeasday changed the title Cannot publish storybook Compatibility with npm 7 Dec 11, 2020
@tmeasday
Copy link
Member

I think this was fixed with #237

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

No branches or pull requests

3 participants