Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/platforms/javascript/guides/capacitor/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ keywords: ["minimum version", "deployment target"]
sidebar_order: 9000
---

## Source Maps Not Linked When Using Live Reload

When you run your app with live reload (for example, `ionic cap run android -l` or `npx cap run ios -l`), the app loads files from your local dev server instead of the production build in your `www` folder. Stack traces from events captured during a live reload session reference the dev server's URLs, such as `http://192.168.x.x:8100/vendor.js`, which don't match the source maps generated from your production build.

Because of this mismatch, source maps won't apply to events captured over live reload, and you may see an error like this when validating a release with `sentry-cli`:

Comment thread
lucas-zimerman marked this conversation as resolved.
```
Uploaded artifacts do not include entry: ~/vendor.js
```

To verify that your source maps are set up correctly, test against a production build instead of a live reload session:

```bash
ionic build --configuration=production
npx cap sync
```

Then run the production build on your device or emulator and upload source maps from your `www` build output as usual.

## Replay only shows a white Empty page

Session Replay does not work correctly with `@ionic/angular`, `@ionic/vue`, or `@ionic/react` version `8.7.1` or newer. Pin these packages to version `8.7.0` to capture session replays.
Expand Down
Loading