0

I have a problem.

Expo building in error.

Unable to resolve "react" from "node_modules\react-native-scripts\build\bin\crna-entry.js"

"dependencies": {
    "expo": "^27.0.1",
    "react": "16.3.1",
    "react-native": "~0.55.2",
    "react-navigation": "^2.9.3"
  }

Thanks.

2 Answers 2

0

maybe you need clear react native packager

rm -rf node_modules // remove node_modules folder

npm cache clean

npm install

npm start

Sign up to request clarification or add additional context in comments.

Comments

0

Open package.json on the root folder of your project and replace

"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",

with

"main": "./node_modules/expo/AppEntry.js",

Source:https://docs.expo.io/versions/latest/sdk/register-root-component#i-created-my-project-before-sdk-18

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.