我有问题。
博览会建设有误。
无法从“ 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"
}
谢谢。
答案 0 :(得分:0)
也许您需要明确的反应本机打包程序
rm -rf node_modules
//删除node_modules文件夹
npm cache clean
npm install
npm start
答案 1 :(得分: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