question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[SDK 39] console.error: React Native version mismatch. JS version: 0.62.2 Native version: 0.63.2

See original GitHub issue

image

dependencies:

{
  "scripts": {
    "expo:install": "expo install",
    "start": "EXPO_USE_DEV_SERVER=true expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject",
    "build:web": "expo build:web",
    "storybook": "start-storybook -p 6006",
    "storybook:native": "expo start --config ./app.nativeStorybook.json",
    "build-storybook": "build-storybook",
    "relay": "relay-compiler --src ./app --schema schema.graphql --language typescript --extensions ts tsx --artifactDirectory ./app/generated",
    "relay:watch": "npm run relay -- --watch",
    "generate:schema": "apollo client:download-schema schema.graphql --config ./apolloSchema.config.js",
    "update": "expo update",
    "test": "node_modules/.bin/jest",
    "test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
    "postinstall": "cd node_modules/aws-amplify-react-native && npm i react-native-elements@latest && cd .. & cd .."
  },
 "dependencies": {
    "@expo/match-media": "0.0.0-beta.2",
    "@hookform/resolvers": "^0.1.1",
    "@react-native-community/datetimepicker": "3.0.0",
    "@react-native-community/masked-view": "0.1.10",
    "@react-native-community/netinfo": "5.9.6",
    "@react-navigation/bottom-tabs": "^5.8.0",
    "@react-navigation/drawer": "^5.9.0",
    "@react-navigation/native": "^5.7.3",
    "@react-navigation/stack": "^5.9.0",
    "@reduxjs/toolkit": "^1.4.0",
    "@testing-library/react-native": "^7.0.2",
    "aws-amplify": "^3.3.1",
    "aws-amplify-react-native": "^4.2.6",
    "date-fns": "^2.16.1",
    "expo": "^39.0.2",
    "expo-cli": "^3.27.7",
    "expo-font": "^8.3.0",
    "expo-linear-gradient": "^8.3.0",
    "expo-linking": "^1.0.4",
    "expo-splash-screen": "~0.6.1",
    "ramda": "^0.27.1",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-hook-form": "^6.8.4",
    "react-modal": "^3.11.2",
    "react-native": "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz",
    "react-native-gesture-handler": "~1.7.0",
    "react-native-reanimated": "^1.13.0",
    "react-native-screens": "~2.10.1",
    "react-native-svg": "^12.1.0",
    "react-native-web": "^0.13.13",
    "react-redux": "^7.2.1",
    "react-relay": "0.0.0-experimental-183bdd28",
    "react-relay-network-modern": "^5.0.0",
    "react-responsive": "^8.1.0",
    "redux": "^4.0.5",
    "vscode-apollo-relay": "^1.5.1",
    "yup": "^0.29.3",
    "zustand": "^3.1.2"
  },
  "devDependencies": {
    "@babel/core": "^7.11.6",
    "@expo/webpack-config": "^0.12.32",
    "@storybook/addon-a11y": "^5.3.19",
    "@storybook/addon-actions": "^5.3.19",
    "@storybook/addon-links": "^5.3.19",
    "@storybook/addon-storysource": "^5.3.19",
    "@storybook/addon-viewport": "^5.3.19",
    "@storybook/addons": "^5.3.19",
    "@storybook/react": "^5.3.19",
    "@storybook/react-native": "^5.3.21",
    "@testing-library/jest-native": "^3.4.2",
    "@testing-library/react": "^11.0.4",
    "@types/ramda": "^0.27.18",
    "@types/react": "~16.9.49",
    "@types/react-modal": "^3.10.6",
    "@types/react-native": "^0.63.20",
    "@types/react-redux": "^7.1.7",
    "@types/react-relay": "^7.0.10",
    "@types/react-test-renderer": "^16.9.3",
    "@types/relay-runtime": "^10.0.3",
    "@types/yup": "^0.29.7",
    "@typescript-eslint/eslint-plugin": "^4.2.0",
    "@typescript-eslint/parser": "^4.2.0",
    "babel-loader": "^8.1.0",
    "babel-plugin-relay": "^10.0.1",
    "babel-preset-expo": "^8.3.0",
    "eslint": "^7.9.0",
    "eslint-config-universe": "^4.0.0",
    "eslint-plugin-react-hooks": "^4.1.2",
    "eslint-plugin-relay": "^1.8.1",
    "jest-environment-jsdom-sixteen": "^1.0.3",
    "jest-expo": "^39.0.0",
    "prettier": "^2.1.2",
    "react-hook-form-devtools": "^1.1.3",
    "react-test-renderer": "16.13.1",
    "redux-logger": "^3.0.6",
    "relay-compiler": "^10.0.1",
    "relay-compiler-language-typescript": "^13.0.1",
    "relay-config": "^10.0.1",
    "storybook-addon-performance": "^0.11.0",
    "typescript": "^4.0.3"
  },

}

I removed node_modules and package.json and use expo start -c, does not help

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
SGarcia710commented, Oct 9, 2020

Thanks, should’ve use expo update.

EXPO_USE_DEV_SERVER=true expo start -c gives image

but expo start -c works fine. so that EXPO_USE_DEV_SERVER is not experimental anymore? 😃

This solved it for me 😃

2reactions
Albert-Gaocommented, Sep 22, 2020

Thanks, should’ve use expo update.

EXPO_USE_DEV_SERVER=true expo start -c gives image

but expo start -c works fine. so that EXPO_USE_DEV_SERVER is not experimental anymore? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native version mismatch - Stack Overflow
The "JavaScript version 0.50.1" in the error console is the react-native version in your package.json file. Make sure it is the same version...
Read more >
"React Native version mismatch" errors - Expo Documentation
When developing an Expo or React Native app, it's not uncommon to run into an error that looks like: React Native version mismatch....
Read more >
How to Fix a React Native Version Mismatch Quickly - Waldo
A well-working solution involves removing all your dependencies and cache from your project and generating your Android and iOS builds again.
Read more >
How to fix React Native version mismatch - DEV Community ‍ ‍
To fix this just do the following. 1). Open package.json. 2). Change this line. "react-native": "^0.61.4",. to reflect the new version.
Read more >
Console Error - React Native Version Mismatch - ADocLib
console.error: React Native version mismatch. JavaScript version: 0.63.2 Native version: 0.62.2. Nothing I have done since I put all my API keys and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found