You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
The first command runs fine without any issues, however the second command (expo upgrade) fails to upgrade js dependencies. Here are all the errors I got after running the command:
Your git working tree is clean
To revert the changes after this command completes, you can run the following:
git clean --force && git reset --hard
✔ You are currently using SDK 41.0.0. Would you like to update to the latest version, 45.0.0? … yes
✔ Installed expo@^45.0.0
✔ Validated configuration.
✔ No additional changes necessary to app.json config.
✖ Failed to upgrade JavaScript devDependencies: jest-expo@^45.0.0 typescript@~4.3.5 @babel/core@^7.12.9 @types/react@~17.0.21 @types/react-dom@~17.0.11 babel-preset-expo@~9.1.0 @types/react-native@~0.67.6
✖ Failed to upgrade JavaScript dependencies: @react-native-community/[email protected] expo-constants@~13.1.1 @react-native-community/[email protected] expo-document-picker@~10.2.1 [email protected] expo-local-authentication@~12.2.0 [email protected][email protected] expo-random@~12.2.0 expo-web-browser@~10.2.1 expo-permissions@~13.2.0 react-native-gesture-handler@~2.2.1 expo-auth-session@~3.6.1 [email protected] react-native-screens@~3.11.1 sentry-expo@^4.2.0 [email protected] expo-secure-store@~11.2.0 expo-font@~10.1.0 [email protected] react-native-reanimated@~2.8.0 expo-image-picker@~13.1.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: /.../node_modules/expo/package.json
├─ File: /.../node_modules/expo/package.json
└─ Cause: Error: ENOENT: no such file or directory, open '/.../node_modules/expo/package.json'
✔ Cleared packager cache.
✔ Validated project
👏 Automated upgrade steps complete.
...but this doesn't mean everything is done yet!
✅ The following packages were updated:
@react-native-community/netinfo, expo-constants, @react-native-community/datetimepicker, expo-document-picker, react-native-webview, expo-local-authentication, react-native-web, react-dom, expo-random, expo-web-browser, expo-permissions, react-native-gesture-handler, expo-auth-session, react, react-native-screens, sentry-expo, react-native, expo-secure-store, expo-font, react-native-safe-area-context, react-native-reanimated, expo-image-picker, jest-expo, typescript, @babel/core, @types/react, @types/react-dom, babel-preset-expo, @types/react-native, expo
🚨 The following packages were not updated. You should check the READMEs for those repositories to determine what version is compatible with your new set of packages:
@apollo/react-hooks, @react-native-community/masked-view, @react-native-community/picker, @types/lodash, apollo-cache-inmemory, apollo-client, apollo-link, apollo-link-context, apollo-link-http, apollo-upload-client, axios, flatted, formik, graphql, intl, jshint, jwt-decode, mime, moment, native-base, react-apollo, react-native-appearance, react-native-elements, react-native-formik, react-native-keyboard-aware-scroll-view, react-native-modal-datetime-picker, react-native-paper, react-native-picker-dropdown, react-native-picker-select, react-native-safe-area-view, react-native-swipe-list-view, react-native-switch-toggle, react-native-touch-id, react-navigation, react-navigation-drawer, react-navigation-stack, react-navigation-tabs, react-redux, redux, redux-devtools-extension, redux-thunk, uri-js, yup, @graphql-codegen/cli, @graphql-codegen/fragment-matcher, @types/apollo-upload-client, @types/enzyme, @types/googlemaps, @types/jest, @types/jwt-decode, @types/mime, @types/node, @types/qs, @types/react-redux, @types/react-test-renderer, @types/redux-mock-store, @types/yup, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, apollo, babel-eslint, babel-jest, enzyme, eslint, eslint-config-prettier, eslint-nibble, eslint-plugin-import, eslint-plugin-jest, eslint-plugin-jsx-a11y, eslint-plugin-prettier, eslint-plugin-react, eslint-plugin-react-native, eslint-plugin-react-native-a11y, expo-cli, graphql-codegen, npm-check-updates, prettier, react-native-testing-library, react-test-renderer, redux-mock-store, yarn
Please refer to the release notes for information on any further required steps to update and information about breaking changes:
https://blog.expo.dev/expo-sdk-45-f4e332954a68
In addition to the most recent release notes, you should go over the breaking changes from skipped releases:
- https://blog.expo.dev/expo-sdk-44-4c4b8306584a
- https://blog.expo.dev/expo-sdk-43-aa9b3c7d5541
- https://blog.expo.io/expo-sdk-42-579aee2348b6
I've tried a bunch of different things, looked up similar discussions but so far nothing helped. I've even tried removing some of the dependencies and re-installing them after the upgrade but that's not working either.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm trying to upgrade my expo SDK from
41
to45
. However, I'm running into a bunch of issues while doing it.Here's how I'm going about the upgrade (following https://blog.expo.dev/expo-sdk-45-f4e332954a68):
The first command runs fine without any issues, however the second command (
expo upgrade
) fails to upgrade js dependencies. Here are all the errors I got after running the command:Here's what my
package.json
looks like:I've tried a bunch of different things, looked up similar discussions but so far nothing helped. I've even tried removing some of the dependencies and re-installing them after the upgrade but that's not working either.
Beta Was this translation helpful? Give feedback.
All reactions