小编Ami*_*rma的帖子

类型错误:未定义不是对象(正在评估“_expoModulesCore.NativeModulesProxy.ExpoSplashScreen”)

我在本机反应中遇到这个问题。一切都工作正常,直到我决定重新运行该项目yarn install

这是完整的错误

TypeError:未定义不是一个对象(评估“_expoModulesCore.NativeModulesProxy.ExpoSplashScreen”)在node_modules\react-native\Libraries\LogBox\LogBox.js:148:8在node_modules\react-native\Libraries\LogBox\LogBox的registerError中。 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中Libraries\Core\setUpErrorHandling.js:24:6 在 node_modules\expo-error-recovery\build\ErrorRecovery.fx.js:12:21 在 Node_modules\regenerator-runtime\runtime.js 的 ErrorUtils.setGlobalHandler$argument_0 中: 63:36 在 node_modules\regenerator-runtime\runtime.js 的 tryCatch 中:294:29 在 node_modules\regenerator-runtime\runtime.js 的调用中:63:36 在 node_modules\regenerator-runtime\runtime.js:155 的 tryCatch 中: 27 在 Node_modules\regenerator-runtime\runtime.js:165:18 在 PromiseImpl.resolve.then$argument_0 在 node_modules\react-native\node_modules\promise\setimmediate\core.js:37:13 在 tryCallOne 在 node_modules\反应本机\node_modules\promise\setimmediate\core.js:123:24在setImmediate$argument_0在node_modules\react-native\Libraries\Core\Timers\JSTimers.js:130:14在_callTimer在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 在 __callImmediates 在 node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:135:6 在 __guard$argument_0 在 node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:364:10 在 __guard FlushedQueue 中的 node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:134:4

我尝试过更新 expo-cli、expo-splash-screen 和缓存清除命令 expo r -c

如果有人可以提供帮助,请告诉我。

react-native expo expo-splash-screen expo-core-modules

8
推荐指数
1
解决办法
1万
查看次数

在 null 上调用成员函数 addEagerConstraints() 在 laravel 6 上出现此错误

我正在使用 laravel 6.0 并且我收到这个奇怪的错误“调用成员函数 addEagerConstraints() on null”我拥有的是通知表,其中我有 notification_id 并且这个 notification_id 链接到 notification_message 表,我正在尝试创建一个他们之间的关系我尝试了一切,但我收到了这个奇怪的错误。

这是我的通知模型,我在其中定义了这种关系

public function notificationMessage(){
    $this->hasOne('App\Models\NotificationMessage','id');
}
Run Code Online (Sandbox Code Playgroud)

php modal-dialog laravel

1
推荐指数
1
解决办法
456
查看次数