Error when using latest create-react-app
See original GitHub issueDescribe the bug
I recently updated @storybook/react
and react-scripts
, and now I cannot start storybook.
With @storybook/react@5.2.1
and react-scripts@3.1.x
, I get the error presented on the screenshot. Changing back to react-scripts@3.0.1
though works fine.
To Reproduce Steps to reproduce the behavior:
- Install
@storybook/react@5.2.1
andreact-scripts@3.1.x
, - Create a story
- Start storybook
- See error
Expected behavior Should not crash.
Screenshots
If applicable, add screenshots to help explain your problem.
System:
System:
OS: Linux 5.0 Ubuntu 19.04 (Disco Dingo)
CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Binaries:
Node: 10.16.3 - ~/.nvm/versions/node/v10.16.3/bin/node
Yarn: 1.17.3 - ~/.yarn/bin/yarn
npm: 6.9.0 - ~/.nvm/versions/node/v10.16.3/bin/npm
Browsers:
Chrome: 77.0.3865.90
Firefox: 69.0.1
npmPackages:
@storybook/react: ^5.2.1 => 5.2.1
Additional context I am uncertain if this is an issue with storybook or CRA.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Create React App not working - Stack Overflow
1. update the npm version (npm install npm@latest -g) · 2. clear the cache (npm cache clean --force) · 3. create the react...
Read more >npx create-react-app not working? Here's the solution.
The current solution is simple — run create-react-app and target the latest version. Run creact-react-app using the latest version. npx create- ...
Read more >npx create-react-app is not working · Issue #10132 - GitHub
I am able to solve the problem by first trying to uninstall the npm globally, update the npm, clear the cache then using...
Read more >What To Do if create-react-app Doesn't Work
Another rather simple remedy for the create-react-app blues. You can try simply reinstalling the latest version of npm. To check what version of...
Read more >Create a New React App
Scaling to many files and components. Using third-party libraries from npm. Detecting common mistakes early. Live-editing CSS and JS in development. Optimizing ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, reproductions are very valuable - and I understand that you can’t always share a project.
@0tho, if you’re issue is related to the issue you linked to, that has been resolved… I’ll ask for a patch release.
https://github.com/facebook/create-react-app/pull/7754
Hi @0tho, have you tried (while on the newer
react-scripts
) removing yournode_modules
and lockfile, and reinstalling?