Skip to content

Feature request: useful stack traces for 'cannot read property 'x' of undefined' #16205

@jslz

Description

@jslz

I would like the stack traces to point to my application code. Apparently it only ever points to internal JS engine type code?

react-native-cli: 2.0.1
react-native: 0.46.4

ExceptionsManager.js:63 Cannot read property 'explore' of undefined
handleException @ ExceptionsManager.js:63
handleError @ InitializeCore.js:125
reportFatalError @ error-guard.js:44
__guard @ MessageQueue.js:230
callFunctionReturnFlushedQueue @ MessageQueue.js:100
(anonymous) @ debuggerWorker.js:71

ExceptionsManager.js:71 Unhandled JS Exception: Cannot read property 'explore' of undefined
reactConsoleErrorHandler @ ExceptionsManager.js:71
console.error @ YellowBox.js:67
logToConsole @ RCTLog.js:43
logIfNoNativeHook @ RCTLog.js:29
__callFunction @ MessageQueue.js:260
(anonymous) @ MessageQueue.js:101
__guard @ MessageQueue.js:228
callFunctionReturnFlushedQueue @ MessageQueue.js:100
(anonymous) @ debuggerWorker.js:71

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions