简体   繁体   English

TypeError: undefined is not an object(评估'_expoModulesCore.NativeModulesProxy.ExpoSplashScreen')

[英]TypeError: undefined is not an object (evaluating '_expoModulesCore.NativeModulesProxy.ExpoSplashScreen')

I am getting this issue in react native.我在本机反应中遇到了这个问题。 The things were working fine until I decicded to rerun the project doing yarn install在我决定重新运行项目进行yarn install之前,一切都运行良好

Here is complete error这是完整的错误

TypeError: undefined is not an object (evaluating '_expoModulesCore.NativeModulesProxy.ExpoSplashScreen') at node_modules\react-native\Libraries\LogBox\LogBox.js:148:8 in registerError at node_modules\react-native\Libraries\LogBox\LogBox.js:59:8 in errorImpl at node_modules\react-native\Libraries\LogBox\LogBox.js:33:4 in console.error at node_modules\expo\build\environment\react-native-logs.fx.js:27:4 in error at node_modules\react-native\Libraries\Core\ExceptionsManager.js:104:6 in reportException at node_modules\react-native\Libraries\Core\ExceptionsManager.js:171:19 in handleException at node_modules\react-native\Libraries\Core\setUpErrorHandling.js:24:6 in handleError at node_modules\expo-error-recovery\build\ErrorRecovery.fx.js:12:21 in ErrorUtils.setGlobalHandler$argument_0 at node_modules\regenerator-runtime\runtime.js:63:36 in tryCatch at node_modules\regenerator-runtime\runtime.js:294:29 in invoke at node_modules\regenerator-runtime\runtime.js:63:36 TypeError: undefined is not an object (evaluate '_expoModulesCore.NativeModulesProxy.ExpoSplashScreen') at node_modules\react-native\Libraries\LogBox\LogBox.js:148:8 in registerError at node_modules\react-native\Libraries\LogBox\LogBox。 js:59:8 in errorImpl at node_modules\react-native\Libraries\LogBox\LogBox.js:33:4 in console.error at node_modules\expo\build\environment\react-native-logs.fx.js:27: 4 在 node_modules\react-native\Libraries\Core\ExceptionsManager.js 出错:104:6 在 node_modules\react-native\Libraries\Core\ExceptionsManager.js:171:19 在 node_modules\react-native\ 的 handleException 中的 reportException Libraries\Core\setUpErrorHandling.js:24:6 in handleError at node_modules\expo-error-recovery\build\ErrorRecovery.fx.js:12:21 in ErrorUtils.setGlobalHandler$argument_0 at node_modules\regenerator-runtime\runtime.js: 63:36 在 node_modules\regenerator-runtime\runtime.js 的 tryCatch 中:294:29 在 node_modules\regenerator-runtime\runtime.js 的调用中:63:36 in tryCatch at node_modules\regenerator-runtime\runtime.js:155:27 in invoke at node_modules\regenerator-runtime\runtime.js:165:18 in PromiseImpl.resolve.then$argument_0 at node_modules\react-native\node_modules\promise\setimmediate\core.js:37:13 in tryCallOne at node_modules\react-native\node_modules\promise\setimmediate\core.js:123:24 in setImmediate$argument_0 at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:130:14 in _callTimer at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:181:14 in _callImmediatesPass at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:441:30 in callImmediates at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:387:6 in __callImmediates at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:135:6 in __guard$argument_0 at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:364:10 in __guard at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:134:4 in flushedQueue在 node_modules\regenerator-runtime\runtime.js:155:27 的 tryCatch 在 node_modules\regenerator-runtime\runtime.js:165:18 在 node_modules\react-native\node_modules\promise 的 PromiseImpl.resolve.then$argument_0 中调用\setimmediate\core.js:37:13 在 node_modules\react-native\node_modules\promise\setimediate\core.js:123:24 在 node_modules\react-native\Libraries\Core\Timers\JSTimers 的 setImmediate$argument_0 中的 tryCallOne .js:130:14 in _callTimer 在 node_modules\react-native\Libraries\Core\Timers\JSTimers.js:181:14 在 _callImmediatesPass 在 node_modules\react-native\Libraries\Core\Timers\JSTimers.js:441:30在 node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:387:6 中的 callImmedates 在 node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:135:6 在 __guard$argument_0 在 node_modules\react-native \Libraries\BatchedBridge\MessageQueue.js:364:10 in __guard at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:134:4 in flushedQueue

I have tried with update expo-cli, expo-splash-screen and with cache clear command expo r -c我尝试过更新 expo-cli、expo-splash-screen 和缓存清除命令 expo r -c

Let me know if there is anyone who can help.让我知道是否有人可以提供帮助。

You can show warnnigs of log?您可以显示日志警告吗? Because i have the same problem and resolved with.因为我有同样的问题并解决了。

Logs:日志:

  • expo-app-loading - expected version: 1.1.2 - actual version installed: 1.3.0 expo-app-loading - 预期版本:1.1.2 - 实际安装版本:1.3.0
  • react-native-screens - expected version: ~3.4.0 - actual version installed: 3.10.1 react-native-screens - 预期版本:~3.4.0 - 安装的实际版本:3.10.1

I used the versions 1.1.2 and 3.4.0 in my package: "react-native-screens": "^3.4.0" to "react-native-screens": "3.4.0" "expo-app-loading": "^1.1.2" to "expo-app-loading": "1.1.2"我在 package 中使用了 1.1.2 和 3.4.0 版本:“react-native-screens”:“^3.4.0”到“react-native-screens”:“3.4.0”“expo-app-loading” : "^1.1.2" 到 "expo-app-loading": "1.1.2"

Remove your node_modules, yarn.lock and package-lock.json删除你的 node_modules、yarn.lock 和 package-lock.json

Yarn install or npm install纱线安装或 npm 安装

For me resolved.对我来说解决了。

@amit sharma if you get your answer/fix please share @amit sharma 如果您得到答案/修复,请分享

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 expo-image-picker 时出错:TypeError: undefined is not an object(评估 '_expoModulesCore.NativeModulesProxy.ExponentImagePicker') - error while using expo-image-picker:TypeError: undefined is not an object (evaluating '_expoModulesCore.NativeModulesProxy.ExponentImagePicker') TypeError:“未定义”不是对象(评估) - TypeError: ‘undefined’ is not an object (evaluating) TypeError: undefined is not an object(评估“this”) - TypeError: undefined is not an object (evaluating 'this') TypeError: undefined is not an object(评估 XYZ) - TypeError: undefined is not an object (evaluating XYZ) TypeError: undefined is not an object (评估..) - TypeError: undefined is not an object (evaluating..) 类型错误:未定义不是对象(评估“this._callListeners.bind”) - TypeError: undefined is not an object (evaluating 'this._callListeners.bind') [TypeError: undefined 不是一个对象(评估'this.setState')] - [TypeError: undefined is not an object (evaluating 'this.setState')] TypeError:未定义不是对象(评估“ personalDetails.firstName”) - TypeError: undefined is not an object (evaluating 'personalDetails.firstName') 类型错误:未定义不是对象(评估“item.id”) - TypeError: undefined is not a object (evaluating 'item.id') TypeError: undefined is not an object(评估“asset.scales”) - TypeError: undefined is not an object (evaluating 'asset.scales')
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM