Please provide the following:
- SDK Version: 39
- Platforms(Android/iOS/web/all): iOS
- Add the appropriate “Tag” based on what Expo library you have a question on.
I’m currently trying to upgrade my RN app to Expo 39. The initial step, which was expo upgrade 39
did not work very smoothly. There was a couple of errors during the upgrade:
✔ Installed expo@^39.0.0
✔ Validated configuration.
✔ No additional changes necessary to app.json config.
✖ Failed to upgrade JavaScript devDependencies: jest-expo@^39.0.0
✖ Failed to upgrade JavaScript dependencies: @expo/vector-icons@^10.0.0 @react-native-community/netinfo@5.9.6 @react-native-community/async-storage@~1.12.0 expo-asset@~8.2.0 expo-camera@~9.0.0 expo-constants@~9.2.0 expo-file-system@~9.2.0 expo-font@~8.3.0 expo-gl@~9.1.1 expo-image-manipulator@~8.3.0 expo-image-picker@~9.1.1 expo-linear-gradient@~8.3.0 expo-mail-composer@~8.4.0 expo-permissions@~9.3.0 expo-secure-store@~9.2.0 react-native-gesture-handler@~1.7.0 react-native-reanimated@~1.13.0 react-native-screens@~2.10.1 react-native-webview@10.7.0 @react-native-community/datetimepicker@3.0.0 react-native@https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz react@16.13.1
✔ Updated known packages to compatible versions.
✔ Removed package-lock.json and deleted node_modules.
✖ Running npm install failed. Please check npm-error.log for more information.
✖ Failed to clear packager cache with error: Can't read JSON file:../app/node_modules/expo/package.json
├─ File:../app/node_modules/expo/package.json
└─ Cause: Error: ENOENT: no such file or directory, open ../app/node_modules/expo/package.json'
✔ Cleared packager cache.
I bumped up the dependencies as recommended here. I cleared watchman cache and node_modules and reinstalled everything watchman watch-del-all && rm -rf node_modules/
, but still the same error persit:
Invariant Violation: NetInfo has been removed from React Native. It can now be installed and imported from '@react-native-community/netinfo' instead of 'react-native'. See https://github.com/react-native-community/react-native-netinfo
- node_modules/react-native/Libraries/LogBox/LogBox.js:148:8 in registerError
- node_modules/react-native/Libraries/LogBox/LogBox.js:59:8 in errorImpl
- node_modules/react-native/Libraries/LogBox/LogBox.js:33:4 in console.error
- node_modules/expo/build/environment/react-native-logs.fx.js:27:4 in error
- node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException
- node_modules/react-native/Libraries/Core/ExceptionsManager.js:171:19 in handleException
- node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError
- node_modules/expo-error-recovery/build/ErrorRecovery.fx.js:9:32 in ErrorUtils.setGlobalHandler$argument_0
- node_modules/regenerator-runtime/runtime.js:63:36 in tryCatch
- node_modules/regenerator-runtime/runtime.js:293:29 in invoke
- node_modules/regenerator-runtime/runtime.js:63:36 in tryCatch
- node_modules/regenerator-runtime/runtime.js:154:27 in invoke
- node_modules/regenerator-runtime/runtime.js:164:18 in PromiseImpl.resolve.then$argument_0
- node_modules/react-native/node_modules/promise/setimmediate/core.js:37:13 in tryCallOne
- node_modules/react-native/node_modules/promise/setimmediate/core.js:123:24 in setImmediate$argument_0
- node_modules/react-native/Libraries/Core/Timers/JSTimers.js:130:14 in _callTimer
- node_modules/react-native/Libraries/Core/Timers/JSTimers.js:181:14 in _callImmediatesPass
- node_modules/react-native/Libraries/Core/Timers/JSTimers.js:441:30 in callImmediates
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:387:6 in __callImmediates
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:135:6 in __guard$argument_0
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:364:10 in __guard
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:134:4 in flushedQueue
* [native code]:null in flushedQueue
* [native code]:null in invokeCallbackAndReturnFlushedQueue