Comments (11)
@bullmo The docs aren't helpful. It's been over 10hrs of futile efforts to upload source maps. Having react-native support should ideally have this feature built in as most of the code being executed is in Javascript and not native. Please improve the docs and the library. Thanks!
from bugsnag-react-native.
#35 is pretty much related. URL parsing is probably not working correctly on Android.
My findings are that bundle names are following:
- iOS: main.jsbundle
- Android: index.android.js
from bugsnag-react-native.
@Andreyco The uploaded source maps get applied to an error report if the minifiedUrl in the upload matches the file/url in the stacktrace and the appVersion matches the app version or versionCode.
The FAQ in the docs gives help on how to identify some common issues with applying source maps.
Please can you contact [email protected] with a link to an error that isn't showing the stacktrace correctly (and reference this issue) so we can investigate why it isn't working for you.
from bugsnag-react-native.
I'm closing this in preference for assisting via support. We can update the docs if the findings are useful for others.
from bugsnag-react-native.
I agree with @keshavkaul. I'm struggling as well with setting up sourcemaps properly. Does it need the dSYM uploaded to Bugsnag or not? Or do we only need the sourcemap there? Nevertheless, I tried both and it's not working for development-mode.
My setup:
React native app running on iOS.
Any help is appreciated! :)
from bugsnag-react-native.
I am also facing the same issue. I use this command to upload source map
bugsnag-sourcemaps upload \ --api-key MY_API_KEY \ --app-version 3.1 \ --minified-file index.android.bundle \ --source-map index.android.sourcemap.js \ --minified-url index.android.bundle \ --upload-sources
Even I can see my source map uploaded in Bugsnag
But my error is still minified, check out the event details below
I have even checked all these things
- App version is matching with uploaded version
- Event is sent after uploaded source map
- --minified-file is matching the uploaded source map file name
Any help would be appreciated. Or I have to switch to some other error reporting tool.
from bugsnag-react-native.
Do we have an update on this?
from bugsnag-react-native.
@avinashwigroup if you're encountering source map issues we'd recommend contacting [email protected] - if you think you've encountered a bug, then feel free to open a new GitHub issue and I'll take a look.
from bugsnag-react-native.
Please do consider updating the docs with modern / clear info... we've spent a lot of time ourselves on this, will be contacting support but it'd be nice if the docs were accurate. Also the bugsnag-sourcemaps cli tool fails without giving any info as to why it failed 😕
from bugsnag-react-native.
yes, indeed I am experiencing the same issue and not capable of configuring source maps. I also can see my sourcemaps uploaded with the same version of package.json but the errors are minified
from bugsnag-react-native.
Hi @fabriziobertoglio1987 - thanks for reaching out!
It is worth noting that we released a separate API for use with React Native source maps which we'd recommend using, full instructions here:
https://docs.bugsnag.com/platforms/react-native/react-native/showing-full-stacktraces/#uploading-source-maps
It is important to use the React Native source map upload API and not the Javascript source map upload API
Using the React Native source map upload API it will just match based on Android/iOS and release/debug variants so if you upload the correct source map variant with a matching appVersion
/ appVersionCode
(Android) / appBundleVersion
(iOS) / codeBundleID
it should be applied to any new errors. Matching on codeBundleID
takes precedence over application version.
If the version or codeBundleID
does not match what is being reported in your error, then it will not be applied. You can check what is being uploaded in 'Settings > uploaded source maps' and your version and codeBundleID
information should be visible on the 'APP' tab of your error.
If this information is all things that you are already doing, then please write into [email protected] and we will take a look at your account :)
from bugsnag-react-native.
Related Issues (20)
- Ask for user confirmation in registerBeforeSendCallback HOT 1
- Intermittent build failure on :bugsnag-react-native:verifyReleaseResources Gradle task HOT 2
- New version utilising new JS and Android versions? HOT 3
- the uploaded source map not getting applied HOT 1
- iOS: Definition of '' must be imported from module HOT 6
- Upload Hermes sourcemaps generated by CodePush HOT 1
- Unhandled crashes not sent. (iOS) HOT 2
- bugsnag-react-native does not support bugsnag-cocoa 6.0 HOT 6
- iOS Build Error: Include of a non-modular header inside framework module 'BugsnagReactNative.Bugsnag' HOT 6
- iOS Library misbehaves when dropping breadcrumbs HOT 4
- Cycle in dependencies between targets 'BugsnagReactNative' and 'FBSDKCoreKit'; HOT 2
- App crash during launch java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader HOT 4
- Files that shouldn't be in your npm package HOT 1
- Sourcemap path in case of android flavor builds HOT 3
- RN62.0: Multiple targets match implicit dependency for linker flag '-lBugsnagReactNative HOT 4
- Missing TS declarations '@bugsnag/react-native' ^7.3.1 HOT 4
- Missing TS definition for `codeBundleId` in Bugsnag.start() HOT 4
- Bugsnag Android Dependency Update HOT 1
- Please add back JS releaseStage and appVersion HOT 1
- Ability to set `errorClass` in new version? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bugsnag-react-native.