jhen0409 / jhen0409/react-native-debugger

Cannot read property 'registerEventHandler' of undefined

Aperta
#396 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
10.4k
Fork
815
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reproducing the failure with Expo 34 and react-native-debugger, then inspect the stack entries in RNDebuggerWorker.js and ReactFabric-prod.js alongside React Native's ExceptionsManager.js. Confirm the relevant compatibility issue and verify that the application starts without the registerEventHandler error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, react-native
Ambito
devtools
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.