У меня возникла проблема с React Native, я думаю, что это связано с обновлением, но я не могу понять это.
Вот предварительный просмотр сообщения об ошибке:
Вот что я пытался сделать до сих пор:
- очистить кеш с помощью expo r - c
- переустановите выставочный CLI
- пересоздайте новый проект
- удалил относительный импорт '@'
- npm update
и это что я получу в метро:
LOG Running "main" with {
"initialProps":{
"exp":{
"initialUri":"exp://192.168.1.2:19000",
"manifest":{
"env":{
},
"id":"@anonymous/infinitParking-8a93b9ed-6504-4eba-981c-dda84bc685e5",
"assetBundlePatterns":[
"**/*"
],
"primaryColor":"#023C69",
"bundleUrl":"http://192.168.1.2:19001/node_modules/expo/AppEntry.bundle?platform=android&dev=true&minify=false&hot=false",
"slug":"infinitParking",
"name":"infinitParking",
"icon":"./assets/icon.png",
"xde":true,
"loadedFromCache":false,
"splash":{
"resizeMode":"contain",
"backgroundColor":"#ffffff",
"image":"./assets/splash.png",
"imageUrl":"http://192.168.1.2:19001/assets/./assets/splash.png"
},
"orientation":"portrait",
"iconUrl":"http://192.168.1.2:19001/assets/./assets/icon.png",
"isVerified":true,
"version":"1.0.0",
"developer":{
"tool":"expo-cli",
"projectRoot":"C:\\Users\\mehdi\\infinitParking"
},
"mainModuleName":"node_modules/expo/AppEntry",
"debuggerHost":"192.168.1.2:19001",
"logUrl":"http://192.168.1.2:19000/logs",
"packagerOpts":{
"https":false,
"dev":true,
"lanType":"ip",
"hostType":"lan",
"minify":false,
"urlRandomness":"vg-rgc"
},
"sdkVersion":"36.0.0",
"platforms":[
"ios",
"android",
"web"
],
"hostUri":"192.168.1.2:19000",
"ios":{
"supportsTablet":true
},
"updates":{
"fallbackToCacheTimeout":0
}
},
"shell":false
}
},
"rootTag":21
}
я также оставлю пакет. json:
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"expo": "~37.0.3",
"expo-image-picker": "^8.1.0",
"react": "~16.9.0",
"react-dom": "~16.9.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz",
"react-native-calendar-picker": "^6.0.6",
"react-native-calendars": "^1.265.0",
"react-native-date-picker": "^2.7.9",
"react-native-datepicker": "^1.7.2",
"react-native-datepicker-modal": "^1.3.0",
"react-native-elements": "^1.2.7",
"react-native-gesture-handler": "^1.6.1",
"react-native-image-slider": "^2.0.3",
"react-native-maps": "^0.26.1",
"react-native-modal-datetime-picker": "^8.5.4",
"react-native-reanimated": "^1.7.0",
"react-native-screens": "^2.2.0",
"react-native-version-check-expo": "^3.4.0",
"react-native-web": "~0.11.7",
"react-navigation": "^4.3.7",
"react-navigation-drawer": "^2.4.11",
"react-navigation-header-buttons": "^3.0.5",
"react-navigation-stack": "^1.10.3",
"react-redux": "^7.2.0",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0"
},
"devDependencies": {
"@babel/core": "^7.8.6",
"babel-preset-expo": "~8.1.0",
"react-devtools-core": "^3.4.2"
},
"private": true
}