jhen0409 / jhen0409/react-native-debugger
Cannot read property 'registerEventHandler' of undefined
- Dominant language
- JavaScript
- Stars
- 10.4k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
There is an error when i try to use react-native-debugger
```
handleException @ C:\Users\ABTR001\Desktop\upc_app\node_modules\react-native\Libraries\Core\ExceptionsManager.js:74
handleError @ C:\Users\ABTR001\Desktop\upc_app\node_modules\react-native\Libraries\Core\setUpErrorHandling.js:23
(anonymous) @ C:\Users\ABTR001\Desktop\upc_app\node_modules\expo\build\launch\RootErrorBoundary.js:31
reportFatalError @ C:\Users\ABTR001\Desktop\upc_app\node_modules\react-native\Libraries\polyfills\error-guard.js:42
guardedLoadModule @ C:\Users\ABTR001\Desktop\upc_app\node_modules\metro\src\lib\polyfills\require.js:199
metroRequire @ C:\Users\ABTR001\Desktop\upc_app\node_modules\metro\src\lib\polyfills\require.js:125
metroRequire.a.name.e.$reactNative.n @ RNDebuggerWorker.js:1
i @ RNDebuggerWorker.js:1
NativeModules @ RNDebuggerWorker.js:1
u @ RNDebuggerWorker.js:1
C:\Users\ABTR001\Desktop\upc_app\node_modules\react-native\Libraries\Core\ExceptionsManager.js:74 Requiring module "node_modules\react-native\Libraries\Renderer\oss\ReactFabric-prod.js", which threw an exception: TypeError: Cannot read property 'registerEventHandler' of undefined
handleException @ C:\Users\ABTR001\Desktop\upc_app\node_modules\react-native\Libraries\Core\ExceptionsManager.js:74
handleError @ C:\Users\ABTR001\Desktop\upc_app\node_modules\react-native\Libraries\Core\setUpErrorHandling.js:23
(anonymous) @ C:\Users\ABTR001\Desktop\upc_app\node_modules\expo\build\launch\RootErrorBoundary.js:31
reportFatalError @ C:\Users\ABTR001\Desktop\upc_app\node_modules\react-native\Libraries\polyfills\error-guard.js:42
guardedLoadModule @ C:\Users\ABTR001\Desktop\upc_app\node_modules\metro\src\lib\polyfills\require.js:199
metroRequire @ C:\Users\ABTR001\Desktop\upc_app\node_modules\metro\src\lib\polyfills\require.js:125
metroRequire.a.name.e.$reactNative.n @ RNDebuggerWorker.js:1
i @ RNDebuggerWorker.js:1
Platform @ RNDebuggerWorker.js:1
u @ RNDebuggerWorker.js:1
C:\Users\ABTR001\Desktop\upc_app\node_modules\react-native\Libraries\Core\ExceptionsManager.js:74 Requiring module "node_modules\react-native\Libraries\Renderer\oss\ReactFabric-prod.js", which threw an exception: TypeError: Cannot read property 'registerEventHandler' of undefined
handleException @ C:\Users\ABTR001\Desktop\upc_app\node_modules\react-native\Libraries\Core\ExceptionsManager.js:74
handleError @ C:\Users\ABTR001\Desktop\upc_app\node_modules\react-native\Libraries\Core\setUpErrorHandling.js:23
(anonymous) @ C:\Users\ABTR001\Desktop\upc_app\node_modules\expo\build\launch\RootErrorBoundary.js:31
reportFatalError @ C:\Users\ABTR001\Desktop\upc_app\node_modules\react-native\Libraries\polyfills\error-guard.js:42
guardedLoadModule @ C:\Users\ABTR001\Desktop\upc_app\node_modules\metro\src\lib\polyfills\require.js:199
metroRequire @ C:\Users\ABTR001\Desktop\upc_app\node_modules\metro\src\lib\polyfills\require.js:125
metroRequire.a.name.e.$reactNative.n @ RNDebuggerWorker.js:1
i @ RNDebuggerWorker.js:1
setupDevtools @ RNDebuggerWorker.js:1
u @ RNDebuggerWorker.js:1
C:\Users\ABTR001\Desktop\upc_app\node_modules\react-native\Libraries\Core\ExceptionsManager.js:82 Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
in App (at withExpoRoot.js:20)
```
my expo version is 34, can anyone help with this?
Contributor guide
Assessment
This issue has not been assessed yet.