Can't upgrade to sdk 33 or 34 React version mismatch

I’ve tried deleting my node modules, updating expo command line, clearing the cache with expo start -c, deleting package lock, and nothing is working.

I always get version mismatch
JavaScript version: 0.59.8
Native Version: 0.57.1

Here is my package file:

{
  "main": "./src/App.js",
  "private": true,
  "dependencies": {
    "@babel/plugin-transform-react-jsx-source": "^7.0.0",
    "@expo/vector-icons": "^9.0.0",
    "@shoutem/ui": "^0.23.4",
    "algoliasearch": "^3.33.0",
    "b64-to-blob": "^1.2.19",
    "big-number": "^1.0.0",
    "bip32": "^1.0.2",
    "bn.js": "^4.11.8",
    "buffer": "^5.1.0",
    "crypto-js": "^3.1.9-1",
    "email-validator": "^1.1.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz",
    "expo": "^34.0.0",
    "react": "16.8.3",
    "firebase": "^5.0.2",
    "lodash": "^4.17.10",
    "md5": "^2.2.1",
    "moment": "^2.22.2",
    "prop-types": "^15.6.2",
    "qs": "^6.5.1",
    "react-instantsearch-native": "^5.7.0",
    "react-native-dropdownalert": "^3.4.0",
    "react-native-elements": "^1.1.0",
    "react-native-extended-stylesheet": "^0.8.1",
    "react-native-fit-image": "^1.5.4",
    "react-native-fs": "^2.10.14",
    "react-native-gifted-chat": "^0.4.3",
    "react-native-iphone-x-helper": "^1.0.2",
    "react-native-keyboard-aware-scroll-view": "^0.7.0",
    "react-native-local-storage": "^1.5.2",
    "react-native-location-view": "^0.1.5",
    "react-native-maps": "^0.22.1",
    "react-native-material-dropdown": "^0.11.1",
    "react-native-modal": "^6.1.0",
    "react-native-qrcode": "^0.2.6",
    "react-native-router-flux": "^4.0.6",
    "react-native-snap-carousel": "^3.7.5",
    "react-native-super-grid": "^2.3.1",
    "react-native-svg-uri": "^1.2.3",
    "react-native-vector-icons": "^6.1.0",
    "react-navigation": "1.5.11",
    "react-navigation-props-mapper": "^0.3.0",
    "react-redux": "^5.0.7",
    "react-router-hash-link": "^1.2.1",
    "redux": "^4.0.0",
    "redux-devtools-extension": "^2.13.5",
    "redux-persist": "^5.10.0",
    "tcomb-form-native": "^0.6.13",
    "uuid": "^3.2.1"
  },
  "devDependencies": {
    "@babel/cli": "^7.0.0",
    "@babel/core": "^7.1.6",
    "@babel/plugin-proposal-decorators": "^7.1.6",
    "@babel/preset-env": "^7.1.0",
    "@babel/preset-react": "^7.0.0",
    "babel-preset-expo": "^5.0.0",
    "babel-core": "^7.0.0-bridge.0",
    "babel-eslint": "^9.0.0",
    "babel-loader": "^8.0.4",
    "babel-preset-react-app": "^6.1.0",
    "eslint": "^4.19.1",
    "eslint-config-airbnb": "^16.1.0",
    "eslint-config-react-app": "^2.1.0",
    "eslint-plugin-flowtype": "2.39.1",
    "eslint-plugin-import": "^2.12.0",
    "eslint-plugin-jsx-a11y": "^5.1.1",
    "eslint-plugin-react": "^7.9.1"
  },
  "resolutions": {
    "babel-core": "7.0.0-bridge.0"
  },
  "scripts": {
    "lint": "eslint ./src --fix"
  },
  "eslintConfig": {
    "extends": "react-app"
  }
}

I’ve also tried with sdk 33 and I get the exact same error. Does anyone know what’s going on? I need to upgrade for Android 64 bit binaries.

I figured it out in case anyone else has this problem. I needed to update the sdk version in the project app.json which is DIFFERENT from the package.json file in case anyone is confused because of the redundancy.

“sdkVersion”: “34.0.0”,

2 Likes

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