Upgrade to SDK47 not work

Please provide the following:

  1. SDK Version: 47
  2. Platforms(Android/iOS/web/all): ios
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Hello there, I’ve updated my codebase to SDK47 but when I run a build I’m still getting SDK46 independently if I build locally or on the cloud.

expo-cli: 6.3.0
eas-cli: eas-cli/3.5.2 darwin-arm64 node-v16.17.1
package.json is this.

Thanks for help.

"scripts": {
    "start": "source .env.staging && npx expo start --dev-client -c",
    "start:production": "source .env.production && npx expo start -c",
    "lint": "eslint .",
    "build:ios": "source .env.production && eas build -p ios --auto-submit --clear-cache",
    "build:android": "source .env.production && eas build -p android --auto-submit --clear-cache",
    "build:all": "source .env.production && eas build --auto-submit --clear-cache",
    "build:ios:preview": "source .env.staging && eas build --profile preview -p ios --clear-cache",
    "build:android:preview": "source .env.staging && eas build --profile preview -p android --clear-cache",
    "build:all:preview": "source .env.staging && eas build --profile preview -p all --clear-cache",
    "build:ios:development": "source .env.staging && eas build --profile development -p ios --clear-cache",
    "build:android:development": "source .env.staging && eas build --profile development -p android --clear-cache",
    "build:all:development": "source .env.staging && eas build --profile development -p all --clear-cache",
    "build:ios:local": "source .env.production && eas build -p ios --local --clear-cache",
    "build:android:local": "source .env.production && eas build -p android  --local --clear-cache",
    "build:all:local": "source .env.production && eas build --local --clear-cache",
    "build:ios:preview:local": "source .env.staging && eas build --profile preview -p ios --local --clear-cache",
    "build:android:preview:local": "source .env.staging && eas build --profile preview -p android --local --clear-cache",
    "build:all:preview:local": "source .env.staging && eas build --profile preview -p all --local --clear-cache",
    "build:ios:development:local": "source .env.staging && eas build --profile development -p ios --local --clear-cache",
    "build:android:development:local": "source .env.staging && eas build --profile development -p android --local --clear-cache",
    "build:all:development:local": "source .env.staging && eas build --profile development -p all --local --clear-cache",
    "build:ios:devclient:local": "source .env.staging && eas build --profile devclient -p ios --local --clear-cache",
    "build:android:devclient:local": "source .env.staging && eas build --profile devclient -p android --local --clear-cache",
    "build:all:devclient:local": "source .env.staging && eas build --profile devclient -p all --local --clear-cache",
    "update:staging": "eas update --branch staging",
    "update:production": "eas update --branch production",
    "android": "source .env.staging && expo run:android",
    "info": "npx expo-env-info",
    "ios": "source .env.staging && expo run:ios",
    "build-plugin-android": "tsc ./plugins/withPladLinkAndroid.ts --watch --skipLibCheck",
    "prebuild:ios:preview": "source .env.staging && expo prebuild -p ios"
  },
  "dependencies": {
    "@expo-google-fonts/roboto": "^0.2.2",
    "@expo/config-plugins": "^5.0.2",
    "@expo/ngrok": "^2.5.0",
    "@expo/react-native-action-sheet": "^4.0.1",
    "@react-native-async-storage/async-storage": "~1.17.3",
    "@react-native-community/netinfo": "9.3.5",
    "@react-native-firebase/analytics": "^16.4.6",
    "@react-native-firebase/app": "^16.4.6",
    "@react-native-firebase/auth": "^16.4.6",
    "@react-native-masked-view/masked-view": "0.2.8",
    "@react-native-picker/picker": "2.4.8",
    "@react-navigation/bottom-tabs": "^6.4.0",
    "@react-navigation/native": "^6.0.13",
    "@react-navigation/native-stack": "^6.9.0",
    "@react-navigation/stack": "6.3.12",
    "@shopify/flash-list": "1.3.1",
    "aspectratio": "^2.2.2",
    "axios": "^1.3.2",
    "currency-symbol-map": "^5.1.0",
    "date-fns": "^2.29.3",
    "dotenv": "^16.0.3",
    "email-validator": "^2.0.4",
    "expo": "~47.0.12",
    "expo-app-loading": "~2.1.1",
    "expo-apple-authentication": "~5.0.1",
    "expo-asset": "~8.7.0",
    "expo-auth-session": "~3.8.0",
    "expo-av": "~13.0.2",
    "expo-blur": "~12.0.1",
    "expo-build-properties": "~0.4.1",
    "expo-cellular": "~5.0.1",
    "expo-clipboard": "~4.0.1",
    "expo-constants": "~14.0.2",
    "expo-crypto": "~12.0.0",
    "expo-dev-client": "~2.0.1",
    "expo-device": "~5.0.0",
    "expo-file-system": "~15.1.1",
    "expo-font": "~11.0.1",
    "expo-haptics": "~12.0.1",
    "expo-intent-launcher": "~10.3.1",
    "expo-linear-gradient": "~12.0.1",
    "expo-linking": "~3.3.0",
    "expo-localization": "~14.0.0",
    "expo-media-library": "~15.0.0",
    "expo-network": "~5.0.0",
    "expo-notifications": "~0.17.0",
    "expo-random": "~13.0.0",
    "expo-secure-store": "~12.0.0",
    "expo-sharing": "~11.0.1",
    "expo-splash-screen": "~0.17.5",
    "expo-status-bar": "~1.4.2",
    "expo-updates": "~0.15.6",
    "expo-web-browser": "~12.0.0",
    "firebase": "9.10.0",
    "i18n-js": "3.9.2",
    "js-sha256": "^0.9.0",
    "lodash": "^4.17.21",
    "moti": "^0.21.0",
    "polished": "^4.2.2",
    "query-string": "^8.1.0",
    "react": "18.1.0",
    "react-devtools-core": "^4.26.1",
    "react-dom": "18.1.0",
    "react-native": "0.70.5",
    "react-native-collapsible": "^1.6.0",
    "react-native-dash": "^0.0.11",
    "react-native-email-link": "^1.14.1",
    "react-native-firebase": "^5.6.0",
    "react-native-gesture-handler": "~2.8.0",
    "react-native-modal": "^13.0.1",
    "react-native-picker-module": "^2.0.7",
    "react-native-plaid-link-sdk": "^8.0.0",
    "react-native-reanimated": "~2.12.0",
    "react-native-reanimated-carousel": "^3.1.1",
    "react-native-render-html": "^6.3.4",
    "react-native-responsive-fontsize": "^0.5.1",
    "react-native-root-toast": "^3.4.0",
    "react-native-safe-area-context": "4.4.1",
    "react-native-screens": "~3.18.0",
    "react-native-shared-element": "0.8.4",
    "react-native-status-bar-height": "^2.6.0",
    "react-native-svg": "13.4.0",
    "react-native-svg-charts": "^5.4.0",
    "react-native-toast-message": "^2.1.5",
    "react-native-video": "^5.2.0",
    "react-native-view-shot": "3.4.0",
    "react-native-web": "~0.18.7",
    "react-native-webview": "11.23.1",
    "react-navigation-shared-element": "^3.1.3",
    "react-query": "3.39.2",
    "sentry-expo": "~6.0.0",
    "socket.io-client": "^4.5.2",
    "victory-native": "^36.6.7"
  },
  "devDependencies": {
    "@babel/core": "^7.19.3",
    "@babel/preset-typescript": "^7.18.6",
    "@types/i18n-js": "^3.8.2",
    "@types/lodash": "^4.14.186",
    "@types/react": "~18.0.24",
    "@types/react-dom": "~18.0.8",
    "@types/react-native": "~0.70.6",
    "@types/react-native-svg-charts": "^5.0.12",
    "@types/react-native-video": "^5.0.14",
    "@typescript-eslint/eslint-plugin": "^5.38.0",
    "@typescript-eslint/parser": "^5.38.0",
    "babel-loader": "^9.1.0",
    "babel-plugin-module-resolver": "^4.1.0",
    "eslint": "^8.24.0",
    "eslint-config-airbnb": "19.0.4",
    "eslint-config-prettier": "^8.5.0",
    "eslint-plugin-import": "^2.26.0",
    "eslint-plugin-jsx-a11y": "^6.6.1",
    "eslint-plugin-prettier": "^4.2.1",
    "eslint-plugin-react": "^7.31.8",
    "eslint-plugin-react-hooks": "^4.6.0",
    "expo-env-cli": "^1.0.6",
    "husky": "^8.0.1",
    "prettier": "^2.7.1",
    "react-query-native-devtools": "^4.0.0",
    "typescript": "^4.6.3"
  },
  "resolutions": {
    "colors": "1.4.0"
  },
  "private": true

Hi @giacomo.alonzi, how are you checking to make sure that after building your app, it is still using SDK 46? Did you try deleting node_modules and any lock (whether yarn.lock or package-lock.json files and then reinstalling all the dependencies of your project?

Hello, @amanhimself thanks for the reply. In the cloud build, I see SDK46 in the info, and even if I install it on a development device I get the same information about the SDK. I don’t know what I can do, I already deleted all node_modules and yarn.lock with no luck!

image

Can you please share the EAS Build link with me where this occurring so that I can take a look? (Note that the EAS Build link shared in forums are only visible to Expo team members).

do you mean this one? Build Details — c8142fa5-0a1c-46d2-a2f0-815d1cf4dcc3 — Liv — Expo

thanks

1 Like

Yes, that’s the the link. Thanks for sharing this!

In your app.json, you have the following value set for runtimeVersion:

  "runtimeVersion": "exposdk:46.0.0",

Usually, when you run npx expo upgrade to update from previous SDK to the one you are updating, this value is updated automatically.

Did you use npx expo upgrade command when updating your project from SDK 46 to 47? Also, it seems like you have a bare project?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.