Sentry-react-native: Error on bundling with the latest release

Created on 26 Mar 2020  路  12Comments  路  Source: getsentry/sentry-react-native

OS:

  • [ ] Windows
  • [x] MacOS
  • [ ] Linux

Platform:

  • [x] iOS
  • [ ] Android

SDK:

  • [ ] @sentry/react-native
  • [x] react-native-sentry

SDK version: 0.0.0
react-native version: 0.0.0

Are you using Expo?

  • [ ] Yes
  • [ x] No

Description goes here ...

Steps to reproduce:

  • Step
    Install the latest release

Actual result:

  • Actual
    When loading the bundle this error appears on the metro bundle:
error: bundling failed: Error: Unable to resolve module `domain` from `node_modules/@sentry/hub/dist/hub.js`: domain could not be found within the project.

Expected result:

  • Result
    bundle is loaded

Most helpful comment

We are on it

All 12 comments

Have the same issue with:
"@sentry/react-native": "^1.3.4",

Message:
Error: Unable to resolve moduledomainfromnode_modules/@sentry/hub/dist/hub.js: domain could not be found within the project.

My command to reproduce this:

react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'

We are on it

Potential fix, we need to validate it with webpack but it works for react-native
https://github.com/getsentry/sentry-javascript/pull/2521

Sorry about this issue https://github.com/getsentry/sentry-javascript/pull/2515#issuecomment-604314979

JS tooling is hard

thanks for this quick work!

it looks like we can't downgrade out of the problem... I've been doing fresh installs etc and @sentry/[email protected] and 1.3.3 are both now resolving to @sentry/[email protected] with yarn, so I still can't build -- does that sound right?

For anyone needing a workaround, I did a fork and locked the version.
The branch fix131 has the temporary solution.
https://github.com/PasseiDireto/sentry-react-native/tree/fix131

Thanks

Sounds about right, we will do a new release today for sure

New version of @sentry/* is released, a clean install should install 5.15.2 with the fix
I will release a new @sentry/react-native version as well with the bump.

Again, sorry for the inconvenience.

1.3.5 has been released

Hi guys,

I still have the same issue, even with 1.3.5 version.
Could you please check again?

@aknyazyan Please clean your node modules and lock file and make sure you get the @sentry/* dependencies above 5.15.2

Removed node_modules, package-json.lock, installed 1.3.5 version. @sentry/* dependencies version is 5.15.2. Error exists (

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juhaelee picture juhaelee  路  3Comments

KevinColemanInc picture KevinColemanInc  路  3Comments

kenobi91 picture kenobi91  路  3Comments

ThomasLarge picture ThomasLarge  路  3Comments

bneigher picture bneigher  路  3Comments