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 when running storybook on fresh project #18197
Comments
I run into the same error without instruction step 2 (i.e. the extra dependencies). |
I have same issue. And in storybook clientsite open the console can see 'util' module_not_found error.
|
@rajmasha Can you try forcing In npm: In yarn |
@shilman Sorry for the late reply. I tried with the webpack 5 override but still getting the same error. |
This issue seems to be related to #15336 Below is
I assume this is caused by dependency webpack@4 in |
Also, using |
@shilman @rajmasha Apparently overrides are not reliable before npm@8.6.0 (cf npm/cli#4322 (comment)). Per the comment, if you are using an older version of npm (still > 8.3.0), you need to delete |
Got the same error. |
I found this thread due to a slightly different Investigating that led me to this thread which has a lot of discussion back and forth about blasting your |
Describe the bug
After installing Nextjs, Chakra-UI, and Storybook, when I ran
npm run storybook
, I got an error MODULE_NOT_FOUNDTo Reproduce
Link to GitHub repo - https://github.com/rajmasha/chakra-storybook-bug
Run the following commands to install and run:
System
Environment Info:
System:
OS: macOS 12.0.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 16.14.2 - /usr/local/bin/node
Yarn: 1.22.18 - /usr/local/bin/yarn
npm: 8.5.0 - /usr/local/bin/npm
Browsers:
Chrome: 101.0.4951.54
Firefox: 100.0
Safari: 15.1
npmPackages:
@storybook/addon-actions: ^6.4.22 => 6.4.22
@storybook/addon-essentials: ^6.4.22 => 6.4.22
@storybook/addon-interactions: ^6.4.22 => 6.4.22
@storybook/addon-links: ^6.4.22 => 6.4.22
@storybook/builder-webpack5: ^6.4.22 => 6.4.22
@storybook/manager-webpack5: ^6.4.22 => 6.4.22
@storybook/react: ^6.4.22 => 6.4.22
@storybook/testing-library: ^0.0.11 => 0.0.11
The text was updated successfully, but these errors were encountered: