Skip to content
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

React-dev-utils/webpackHotDevClient breaks when updating #8851

Closed
darthzeran opened this issue Apr 17, 2020 · 2 comments
Closed

React-dev-utils/webpackHotDevClient breaks when updating #8851

darthzeran opened this issue Apr 17, 2020 · 2 comments

Comments

@darthzeran
Copy link

#8254

Describe the bug

I updated my package.json like so:

"react": "^16.8.0", =>"^16.13.1",
"react-dom": "^16.8.0", => "^16.13.1",
"react-scripts": "2.1.8", =>"^3.4.1",

and then i ran yarn; yarn dev
and then I got the following error

Error: [BABEL] C:\project\node_modules\react-dev-utils\webpackHotDevClient.js: Cannot find module 'js-levenshtein' (While processing: "C:\\project\\node_modules\\babel-preset-react-app\\dependencies.js$0")   

so i yarn added the levenshtein modeule

then got the following error

Error: [BABEL] C:\project\node_modules\react-dev-utils\webpackHotDevClient.js: Invalid Option: corejs is not a valid top-level option.                                                                            Maybe you meant to use 'targets'? (While processing: "C:\\project\\node_modules\\babel-preset-react-app\\dependencies.js$0") 

I then did about 10 different github/stack overflow suggestions to remedy this error, but to no avail,
including mass yarn upgrades, installing individual packages, etc.

Did you try recovering your dependencies?

yes
yarn version 1.17.3

Which terms did you search for in User Guide?

hot dev, wepbackhotdevclient, corejs, invalid option

Environment

using Electron

Environment Info: current version of create-react-app: 3.4.1
running from C:\blank\AppData\Roaming\npm-cache_npx\18920\node_modules\create-react-app
System: OS: Windows 10 10.0.18362
CPU: (8) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
Binaries:
Node: 10.15.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.17.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 44.18362.449.0
Internet Explorer: 11.0.18362.1
npmPackages:
react: ^16.13.1 => 16.13.1
react-dom: ^16.13.1 => 16.13.1
react-scripts: ^3.4.1 => 3.4.1
npmGlobalPackages:
create-react-app: Not Found

Steps to reproduce

Have an electron react project with a package .json similar to the intro,
change it to match the new versions added to package json
voila

Expected behavior

TO not crash when yarn dev'ing

Actual behavior

Errors shown above

@stale
Copy link

stale bot commented May 17, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label May 17, 2020
@stale
Copy link

stale bot commented May 22, 2020

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.

@stale stale bot closed this as completed May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant