Skip to content

Commit

Permalink
add changelog and incompatibility error message
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich committed Aug 8, 2024
1 parent c0b4b96 commit d553969
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Fixes

- Support `[email protected]` new `sourceMapString` export ([#4004](https://github.com/getsentry/sentry-react-native/pull/4004))
- `Sentry.captureMessage` stack trace is in `event.exception` (moved from `event.threads`) ([#3635](https://github.com/getsentry/sentry-react-native/pull/3635), [#3988](https://github.com/getsentry/sentry-react-native/pull/3988))
- To revert to the old behavior (causing the stack to be unsymbolicated) use `useThreadsForMessageStack` option

Expand Down
5 changes: 4 additions & 1 deletion src/js/tools/vendor/metro/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ export const createDefaultMetroSerializer = (): MetroSerializer => {
} else if (typeof (sourceMapString as NewSourceMapStringExport).sourceMapString === 'function') {
sourceMapStringFunction = (sourceMapString as NewSourceMapStringExport).sourceMapString;
} else {
throw new Error('[@sentry/react-native/metro] Cannot find sourceMapString function in Metro');
throw new Error(`
[@sentry/react-native/metro] Cannot find sourceMapString function in 'metro/src/DeltaBundler/Serializers/sourceMapString'.
Please check the version of Metro you are using and report the issue at http://www.github.com/getsentry/sentry-react-native/issues
`);
}

// Always generate source maps, can't use Sentry without source maps
Expand Down

0 comments on commit d553969

Please sign in to comment.