I have a bunch of errors like this on Sentry with RN 0.31:
Source code was not found for /Users/<user>/<path>/node_modules/react/lib/ReactNativeEventEmitter.js
With a lot of files.
It's because in the sourcemaps there is this part:
"sources":["/Users/<user>/<path>/node_modules/react/lib/ReactNativeEventEmitter.js"]
Should I have to upload all the source code as artifacts? It means all my code and all the node_modules sources. That's the wrong way to solve I think.
If the source is in the uploaded sourcemap you don't need to do anything. If it's not, then you need to upload the source as well. RN keeps changing, but last I knew there was a bundle.js and a sourcemap for that bundle, and thus you'd need to upload both.
I uploaded both the jsbundle and the sourcemaps.
Is it viable to upload all my source code and my node_modules source code?
If it's not part of the jsbundle (I thought it was) then ya the only solution is to upload the remainder.
I'll check.
But maybe it's in the bundle but not well parsed because it's the indexed sourcemaps format and sentry handled them recently (https://github.com/getsentry/sentry/issues/3224).
@Kerumen did you end up figuring this out? Is there any guidance for this issue @dcramer?
then ya the only solution is to upload the remainder.
Unclear what this is proposing; I am using the raven-js's React Native plugin; does Sentry not support the crash logs that it reports from the React Native application?
@ajwhite No, so I ended up by switching to Bugsnag which works very well. I didn't have to configure something, everything was good out of the box.
Thanks @Kerumen, I'll check that out if I can't get this working.
Hoping @dcramer might have some advice before looking at alternatives
We have some plugins and similar that will work with this but we're going to be launching some cross language support for react native here pretty soon.
Most helpful comment
@ajwhite No, so I ended up by switching to Bugsnag which works very well. I didn't have to configure something, everything was good out of the box.