-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
project can not work after upgrade react-scripts form 2.0.0-next.a671462c to 2.0.0 #5116
Comments
Similar issue: #5103 (comment) |
Here's my findings thus far: Since there are two versions of => Found "@babel/[email protected]"
info Has been hoisted to "@babel/runtime"
info Reasons this module exists
- Hoisted from "dva#@babel#runtime"
- Hoisted from "dva#dva-core#@babel#runtime"
info Disk size without dependencies: "1.47MB"
info Disk size with unique dependencies: "9.05MB"
info Disk size with transitive dependencies: "9.05MB"
info Number of shared dependencies: 2
=> Found "react-scripts#@babel/[email protected]"
info This module exists because "react-scripts" depends on it.
info Disk size without dependencies: "516KB"
info Disk size with unique dependencies: "556KB"
info Disk size with transitive dependencies: "556KB"
info Number of shared dependencies: 1
✨ Done in 1.29s. (note: webpack is set to look at create-react-app/packages/react-scripts/config/webpack.config.prod.js Lines 185 to 193 in a73829f
x-ref: webpack/webpack#6505 (comment) I make this assumption because the module missing is with joes-mbp:test-next joe$ ls node_modules/@babel/runtime/
README.md core-js/ core-js.js helpers/ package.json regenerator/
joes-mbp:test-next joe$ ls node_modules/react-scripts/node_modules/@babel/runtime/
LICENSE README.md helpers/ package.json regenerator/
joes-mbp:test-next joe$ So, it appears our module resolution is searching in the wrong place, not starting at the level of the project it's currently resolved to. |
|
My issue in #5103 (comment) is now solved with 2.0.1 |
It has been fixed by upgrade react-scripts to 2.0.1. |
Is this a bug report?
yes
Did you try recovering your dependencies?
yes
Which terms did you search for in User Guide?
"Updating to New Releases", "Migrating from 2.0.0-next.xyz"
Environment
(paste the output of the command here)
faild to run
create-react-app --info
Environment:
OS: Windows 10
Node: 8.11.4
Yarn: 1.5.4
npm: 5.6.0
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found
Packages: (wanted => installed)
react: ^16.5.2 => 16.5.2
react-dom: ^16.5.2 => 16.5.2
react-scripts: 2.0.0-next.a671462c => 2.0.0
Steps to Reproduce
(Write your steps here:)
src/index.js
$ cd app $ yarn add dva
Expected Behavior
(Write what you thought would happen.)

Actual Behavior
(Write what happened. Please add screenshots!)

Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
https://github.com/goblin-laboratory/cra/tree/demo
The text was updated successfully, but these errors were encountered: