I’ve followed the set up instructions for Sentry in my React-Native app for Android.
I’m currently trying to debug the following error/stack trace reported in production of my app:
TypeError: Object is not a function
at anonymous(app:///index.android.bundle:1:1213582)
at f(app:///index.android.bundle:1:173014)
at anonymous(app:///index.android.bundle:1:173776)
at apply(:0:0)
at anonymous(app:///index.android.bundle:1:182260)
at y(app:///index.android.bundle:1:181353)
at C(app:///index.android.bundle:1:181555)
at callImmediates(app:///index.android.bundle:1:183352)
at value(:0:0)
at anonymous(app:///index.android.bundle:1:71924)
at value(app:///index.android.bundle:1:72659)
at value(app:///index.android.bundle:1:71835)
at value(:0:0)
The stack trace is not very useful though and I can’t reproduce the problem.
I am getting correct stack traces in the development version, when trying throw new Error('testing sentry')
in development I get a useful report:
Error: Error: testing sentry
This error is located at:
in HomePage (created by Context.Consumer)
in Connect(HomePage) (at _root.js:49)
in Provider (at _root.js:48)
in Unknown (at ComponentWrapper.js:29)
in WrappedComponent (at renderApp...
at componentDidMount(app:///index.bundle?platform=android&dev=true&minify=false:148849:24)
at apply(:0:0)
at proxiedComponentDidMount(app:///index.bundle?platform=android&dev=true&minify=false:48229:47)
at commitLifeCycles(app:///index.bundle?platform=android&dev=true&minify=false:18729:45)
at commitLayoutEffects(app:///index.bundle?platform=android&dev=true&minify=false:20933:29)
at apply(:0:0)
at invokeGuardedCallbackImpl(app:///index.bundle?platform=android&dev=true&minify=false:8240:21)
at apply(:0:0)
at invokeGuardedCallback(app:///index.bundle?platform=android&dev=true&minify=false:8336:42)
at commitRootImpl(app:///index.bundle?platform=android&dev=true&minify=false:20765:36)
at unstable_runWithPriority(:0:0)
at runWithPriority(app:///index.bundle?platform=android&dev=true&minify=false:11796:41)
at commitRoot(app:///index.bundle?platform=android&dev=true&minify=false:20634:24)
at runRootCallback(:0:0)
at flushImmediateQueueImpl(:0:0)
at flushImmediateQueue(app:///index.bundle?platform=android&dev=true&minify=false:11826:32)
at scheduleUpdateOnFiber(app:///index.bundle?platform=android&dev=true&minify=false:20006:34)
at scheduleRootUpdate(app:///index.bundle?platform=android&dev=true&minify=false:21484:21)
at updateContainerAtExpirationTime(app:///index.bundle?platform=android&dev=true&minify=false:21509:34)
at updateContainer(app:///index.bundle?platform=android&dev=true&minify=false:21593:47)
at render(app:///index.bundle?platform=android&dev=true&minify=false:22198:26)
at renderApplication(app:///index.bundle?platform=android&dev=true&minify=false:72104:78)
at run(app:///index.bundle?platform=android&dev=true&minify=false:71754:28)
at runApplication(app:///index.bundle?platform=android&dev=true&minify=false:71804:28)
at apply(:0:0)
at __callFunction(app:///index.bundle?platform=android&dev=true&minify=false:2214:49)
at anonymous(app:///index.bundle?platform=android&dev=true&minify=false:1956:31)
at __guard(app:///index.bundle?platform=android&dev=true&minify=false:2168:15)
at callFunctionReturnFlushedQueue(app:///index.bundle?platform=android&dev=true&minify=false:1955:21)
… while in production I only get <unlabeled event>
If it helps, on development on the issue page I can also see the error below, despite a useful stack trace.
I’m fairly new to this and have no idea how to use sentry for production. Help would be appreciated!