question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't start with storybook!

See original GitHub issue

Describe the bug

React-scripts can be started as higher version of webpack is found higher in the tree

image

After analyzing package-lock.json I can say that storybook requires webpack ^4.33 so probably it installs 4.41.2 which is incompatible.

Did you try recovering your dependencies?

npm 6.12.0

Which terms did you search for in User Guide?

found similar issue with storybook, cra and babel-loader. Tried to re-init storybook like npx -p @storybook/cli sb init --type react_scripts -f but didn’t help

Environment

Environment Info:

System: OS: macOS 10.15 CPU: (12) x64 Intel® Core™ i7-8750H CPU @ 2.20GHz Binaries: Node: 12.13.0 - /usr/local/bin/node Yarn: 1.19.1 - /usr/local/bin/yarn npm: 6.12.0 - /usr/local/bin/npm Browsers: Chrome: 78.0.3904.70 Firefox: 68.0.2 Safari: 13.0.2 npmPackages: react: 16.11.0 react-dom: 16.11.0 react-scripts: 3.2.0 npmGlobalPackages: create-react-app: Not Found

Steps to reproduce

  1. npm install
  2. npm start

Expected behavior

App should start

Actual behavior

App can’t start

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
vsubbotskyycommented, Oct 28, 2019

Until the issue resolved, I just added 4.41.0 as dev dependency in my package.json "webpack": "4.41.0"

0reactions
stale[bot]commented, Dec 2, 2019

This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to start storybook · Issue #5956 - GitHub
Describe the bug. Unable to launch the startup script npm run storybook. To Reproduce Tried with node 8.11.3 and 10.15.1 same result
Read more >
Error running storybook - sh: 1: start-storybook: not found
This error is due to the node_modules folder. If you delete that folder and run npm install . it will work. Mostly due...
Read more >
How to fix "Cannot GET /” when running Storybook
If you have ever run Storybook successfully but got "Cannot GET /” display in the browser? There is a simple fix for this...
Read more >
Install Storybook
Storybook needs to be installed into a project that is already set up with a framework. It will not work on an empty...
Read more >
Cannot start React App after installing Storybook? Here's how ...
The Problem When Starting React · 1. Delete package-lock. · 2. Delete node_modules in your project folder. · 3. Remove "babel-loader" from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found