-
Notifications
You must be signed in to change notification settings - Fork 24.7k
upgrade from 0.56-rc.3 -> 0.56-rc.4 fails #19940
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
Comments
Uhm can you post your Which version of the EDIT: it seems like this is the same error posted in #19859, so may be related to jest? Maybe worth closing this issue and keeping the conversation ongoing there? |
It's a project started with 0.54, then upgraded to 0.55 when released {
"name": "proj",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"axios": "^0.18.0",
"lodash": "^4.17.10",
"react": "16.4.1",
"react-native": "0.56.0-rc.3",
"react-native-linear-gradient": "^2.4.0",
"react-navigation": "^2.0.4",
"react-redux": "^5.0.7",
"redux": "^4.0.0",
"redux-persist": "^5.10.0",
"redux-thunk": "^2.3.0",
"reselect": "^3.0.1"
},
"devDependencies": {
"@types/lodash": "^4.14.109",
"@types/react": "^16.3.14",
"@types/react-native": "^0.55.14",
"@types/react-navigation": "^2.0.0",
"@types/react-redux": "^6.0.0",
"babel-core": "^7.0.0-beta.3",
"babel-jest": "^23.0.1",
"babel-preset-react-native": "^5.0.1",
"jest": "^23.1.0",
"prettier": "^1.12.1",
"react-test-renderer": "^16.4.1",
"typescript": "^2.8.3"
},
"jest": {
"preset": "react-native"
}
} |
Uhm yeah I think it may be these lines:
Can you check with the other issue I linked #19859 and if upgrading versions fixes it for you? |
I use yarn to upgrade packages, and it doesn't touch package.json. Installed @babel/core@^7.0.0-beta.47, babel-core@^7.0.0-beta.47, babel-jest@^23.2.0, babel-plugin-jest-hoist@^23.2.0 and issue still persists. |
Understood. Does it happen also with a "fresh project"? Or/and only from rc3 to rc4? |
Didn't tried with "fresh project", but rc3 to rc4. |
well . i have the same error when upgrade 0.55.3 =>rc4. but when i use babel-preset-react-native:$4.0.0 . this error |
This worked for me: Edit package.json manually to use the latest version of react native and run yarn install. Fix any peerDependency warnings you get. |
Closing this issue, because I upgraded my project using suggestions provided by @CrazyPython. |
Can't upgrade same error
|
ok |
@gastonmorixe as they say, "Use the source, luke" 😄 |
I use 0.56-rc.3 and it fails to upgrade to 0.56-rc.4 using react-native-git-upgrade next command.
Environment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.5
CPU: x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
Memory: 248.71 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.5.0 - /usr/local/bin/node
Yarn: 1.7.0 - /usr/local/bin/yarn
npm: 6.1.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.3, macOS 10.13, tvOS 11.3, watchOS 4.3
Android SDK:
Build Tools: 26.0.3, 27.0.3, 28.0.0
API Levels: 26, 27, 28
IDEs:
Android Studio: 3.1 AI-173.4819257
Xcode: 9.3/9E145 - /usr/bin/xcodebuild
npmPackages:
@types/react: ^16.3.14 => 16.4.1
@types/react-native: ^0.55.14 => 0.55.24
react: 16.4.1 => 16.4.1
react-native: 0.56.0-rc.3 => 0.56.0-rc.3
The text was updated successfully, but these errors were encountered: