-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Source map issue with latest Ionic/Angular/ Capacitor app #265
Comments
Hi thanks for opening the issue. Also: Does this link contains your release with the release number 1.5.0 and dist 1? https://sentry.io/settings/appthebusiness-ltd/projects/taximate-mobile/source-maps |
Yes, Please let me know what else you need from us. Thanks! app.module.ts
And
|
Hi @Sampath-Lokuge - I reviewed the event you shared 9f22b34e8e2d48df9baed6b3468bc4df and can confirm we don't have release artifacts for the .js files that are being shown in the abs_path of stacktrace. For example, the stack trace is showing an abs_path of http://192.168.8.145:8100/vendor.js but there is no corresponding ~/vendor.js.map artifact. This seems to be the case for every filename in the stacktrace. It might be helpful to know more about how you're running/serving the application and if you are able to upload release artifacts such as vendor.js or vendor.js.map Let us know |
I have done like so:
After that run the app locally on my Android device like so and generate the runtime error:
Please let me know the issue with my workflow. Thanks. |
Because you're using the livereload option you're running a dev server, this is not serving the files from your production build (the files that you're sending to sentry). |
Yes, now it is working with the production build. Thanks. |
Glad to hear it's work as expected with the production build. I was looking at ionic's CLI docs and it seems like there are ways to inline sourcemaps and output sourcemaps with live reload. You would need to upload those with each live reload presumably. I believe we typically recommend testing with a production build though. I'll let @lucas-zimerman comment on that |
Yes, it seems more work with the |
Hi,
This is an Ionic/Angular/Capacitor native app.
package.json
This is the Sentry issue link on my project: Link
angular.json
But it doesn't show the
ts
details on the error. Any clue, please? Thanks!explain
cli shows this?✔ Fetched data for event: 9f22b34e8e2d48df9baed6b3468bc4df
✔ Event has release name: taximate-mobile@1.5.0
✔ Event has a valid exception present
✔ Event has a valid stacktrace present
✖ Uploaded artifacts do not include entry: ~/src_app_modules_home_home_module_ts.js
What should I do to generate
home_module_ts.js
?I use
ionic build --prod
with the aboveangular.json
configurations. I have tried"sourceMap": true,
also. But the Same error.upload-sourcemaps
./node_modules/.bin/sentry-cli releases --org appthebusiness-ltd --project taximate-mobile files taximate-mobile@1.5.0 upload-sourcemaps ./www --dist 1
The text was updated successfully, but these errors were encountered: