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
Module not found: Error: Can't resolve 'util' #18319
Comments
I am getting the same, after trying to upgrade storybook to 6.5.5 from 6.4.21. I ran upgrade using npx sb upgrade. |
|
We also got this error after changing our devDependency from @cypress/code-coverage to 3.10.0. Before:
After update to
What seems to work is manually install |
@leschdom That seems to be a good workaround. It's not the first time I've had issues with Storybook and it's dependencies. I wonder what the root cause is here. |
I believe this is related #17978 (comment) |
A fix is ready here: #18412 |
Thanks @Andarist. |
Thank you, this is now solved for me in Storybook 6.5.9 🎉 |
Jeepers creepers!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-alpha.2 containing PR #18412 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
I had the same error, i just installed util as devDependency yarn add -D util |
Yo-ho-ho!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.10-alpha.0 containing PR #18412 that references this issue. Upgrade today to the
|
Ooh-la-la!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.10 containing PR #18412 that references this issue. Upgrade today to the
|
@shilman I'm still getting this error on the latest v6.5.13 😞 doing a clean install following this: https://dev.to/alexeagleson/how-to-build-scalable-architecture-for-your-nextjs-project-2pb7#adding-storybook Going to do this for the workaround: #18319 (comment) |
Just ran into this one on the clean install of |
Same |
I am also having this issue on |
I was able to resolve this error on v7.0.1 by adding
|
I got these error also, running in It happens because of You can make PR to reqeust to update dependency correctly, but code-owner will never respond.
in your case: packageExtensions:
'@storybook-ui@*':
dependencies:
'util': '^0.12.5' In my case: packageExtensions:
'jest-util@*':
dependencies:
'process': '^0.11.10'
'url': '^0.11.1'
'graceful-fs@*':
dependencies:
'util': '^0.12.5'
|
Describe the bug
With a fresh build of storybook using react, webpack 5 and yarn PnP, I get an error during build:
To Reproduce
Simple repro repository
All I did was:
yarn dlx sb@next repro --pnp
react
andreact-typescript
yarn add -D webpack @storybook/builder-webpack5 @storybook/manager-webpack5
main.ts
to include{ "core": { "builder": "webpack5" } }
yarn build-storybook
System
Additional context
The same project, but with
node-linker: node-modules
enabled does not produce the error.The text was updated successfully, but these errors were encountered: