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.
For example if it says Javascript version is 20 and React Version is 19, your line would become
"react-native": "20",
3). Save the file
4). Close your eyes, delete the node_modules folder
5). Open your eyes and type
If you use Yarn:
yarn install
if you use NPM:
npm install
6). Start the app by typing
yarn start -c
or
npm start -c
or
expo start
Oldest comments (7)
I dont understand, when this happens? I never had this issue before
This happens when your project has different version from the one specified in package.json
This awesome man!
Thank you very much for this!
Javascript was one version behind the installed native version,
So, I changed the sdk version to just 1 behind Changed this line in my package.json "react-native": "github.com/expo/react-native/archi...",
to "react-native": "github.com/expo/react-native/archi...",
and saved the file, and app started working (Didn't even restart the app)
That's great man.
WTF Facebook? I just started a new project with the CLI and got this error...