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.

Error when using latest create-react-app

See original GitHub issue

Describe 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:

  1. Install @storybook/react@5.2.1 and react-scripts@3.1.x,
  2. Create a story
  3. Start storybook
  4. See error

Expected behavior Should not crash.

Screenshots If applicable, add screenshots to help explain your problem. image

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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mrmckebcommented, Oct 1, 2019

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

1reaction
mrmckebcommented, Sep 30, 2019

Hi @0tho, have you tried (while on the newer react-scripts) removing your node_modules and lockfile, and reinstalling?

Read more comments on GitHub >

github_iconTop 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 >

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