expo / expo-cli

Tools for creating, running, and deploying universal Expo and React Native apps
https://docs.expo.io/workflow/expo-cli/
2.6k stars 477 forks source link

expo-doctor unable to run after upgrading to 49 from 42 #4760

Closed masterprompt closed 9 months ago

masterprompt commented 9 months ago

Summary

Upgraded from 42 to 49 via the various blog posts (one at a time). Unable to run expo-doctor as it gives me the following error: expo-doctor supports Expo SDK 46+. Use 'expo-cli doctor' for SDK 45 and lower.

Checked package.json:

"dependencies": {
    "@expo/config-plugins": "^7.2.5",
    "@react-native-async-storage/async-storage": "~1.15.0",
    "@react-native-community/datetimepicker": "3.5.2",
    "@react-native-community/masked-view": "0.1.10",
    "@react-native-picker/picker": "1.16.1",
    "@react-navigation/native": "^6.1.7",
    "@react-navigation/stack": "^6.3.17",
    "axios": "^1.4.0",
    "expo": "^49.0.10",   <<--- Says 49 right there!!!!
    "expo-auth-session": "~3.3.1",
    "expo-constants": "~11.0.1",
    "expo-notifications": "~0.12.3",
    "expo-random": "~11.2.0",
    "expo-status-bar": "~1.0.4",
    "expo-updates": "~0.8.2",
    "expo-web-browser": "~9.2.0",
    "jwt-decode": "^3.1.2",
    "lodash": "^4.17.21",
    "moment": "^2.29.4",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "0.63.4",
    "react-native-auth0": "^2.8.0",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-gifted-chat": "^0.16.3",
    "react-native-paper": "^4.7.2",
    "react-native-ratings": "^8.1.0",
    "react-native-reanimated": "~2.2.0",
    "react-native-safe-area-context": "3.2.0",
    "react-native-screens": "~3.4.0",
    "react-native-sectioned-multi-select": "^0.8.1",
    "react-native-svg": "12.1.1",
    "react-native-web": "~0.13.12",
    "react-query": "^3.13.0",
    "victory-native": "35.3.3"
  },
  "devDependencies": {
    "@babel/core": "~7.9.0",
    "yargs": "^17.1.1"
  },

Environment

❯ npx expo-env-info

  expo-env-info 1.0.5 environment info:
    System:
      OS: macOS 13.4.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
      npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
    SDKs:
      iOS SDK:
        Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    IDEs:
      Android Studio: 2020.3 AI-203.7717.56.2031.7678000
      Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
    npmPackages:
      expo: ^49.0.10 => 49.0.10
      react: 16.13.1 => 16.13.1
      react-dom: 16.13.1 => 16.13.1
      react-native: 0.63.4 => 0.63.4
      react-native-web: ~0.13.12 => 0.13.18
    Expo Workflow: managed

Please specify your device/emulator/simulator platform, model and version

Mac M1, iphone 14 simulator

Error output

❯ EXPO_DEBUG=true npx expo-doctor
expo-doctor supports Expo SDK 46+. Use 'expo-cli doctor' for SDK 45 and lower.

Reproducible demo or steps to reproduce from a blank project

simply upgraded from expo 42 to expo 49 version by version..

masterprompt commented 9 months ago

the upgrade path for expo is EXTREMELY FRUSTRATING!!!!!!

masterprompt commented 9 months ago

Spent the last 3 weeks trying to troubleshoot all these upgrade issues and am stuck... Been contemplating rebuilding the whole app without expo, I can't afford this kind of downtime due to this framework. :-(

nicolas-jaussaud commented 9 months ago

I experienced the same error after an update from 45 to 49

In my case, it was due to the sdkVersion from app.json still being set to 45.0.0

After manually changing it to 49.0.0 I was able to run npx expo-doctor correctly

masterprompt commented 9 months ago

That worked for me, Thank you!!!!