-
Notifications
You must be signed in to change notification settings - Fork 83
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
Adding sentry-expo leads to launch error #363
Comments
Well, I tried to reproduce my quick fix which consist in changing the tslib version, but I cannot make it work anymore :') The error in development is the following
|
Linked to this Sentry React Native Issue |
Running into a similar issue. Not an error, just bundler warnings.
Appears to be rare and Metro-specific. Searching for "contains an invalid package.json configuration" returns only one hit, this page. |
I'm getting the same warnings but with different packages:
Not sure if is related to sentry only. |
I'm also using NX monorepo ! |
Same error here, also using NX monorepo with expo plugin.
|
I have this error
What should I do ?! I am using expo in nx monorepo |
This was fixed downstream in Can you upgrade to |
Still getting this warning. Perhaps somebody knows any new ways to fix it or work around it? I was looking at some options to suppress or disable this warning - but no luck so far. Would be very glad to hear that someone fixed this in their project. |
@enfipy Upgrading to https://github.com/getsentry/sentry-react-native/releases/tag/5.7.0 didn't fix it?
|
@krystofwoldrich I temporarily fixed it by adding About your question, I have a bunch of other packages - so I can't say too sure that updating to the latest sentry version fixed it. As my warning originated from |
This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed. |
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem. |
Summary
When adding expo-sentry to my repo, I have the following fatal error that appears right on start.
com.facebook.react.common .JavascriptException: TypeError: Cannot read property '__extends' of undefined, js engine: hermes, stack: anonymous@1:841281 loadModulelmplementation@1:52808 guardedLoadModule@1:52363 metroRequire@1:51991
I find a "quick fix" in development which is updating tslib to version >= 2.6, but it still breaks on EAS Build.
Also, I have a warning that appears 3 times on start :
warning: The package XX/node_modules/tslib contains an invalid package.json configuration. Consider raising this issue with the package maintainer(s).
Reason: The resolution for "XX/node_modules/tslib" defined in "exports" is XX/node_modules/tslib/tslib.es6.mjs, however this file does not exist. Falling back to file-based resolution.
NB : I had none of these errors/warnings between adding expo-sentry
Managed or bare workflow? If you have
ios/
orandroid/
directories in your project, the answer is bare!managed
What platform(s) does this occur on?
Android, iOS
SDK Version (managed workflow only)
49
Environment
expo-env-info 1.0.5 environment info:
System:
OS: Linux 5.19 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 18.16.0 - ~/.volta/tools/image/node/18.16.0/bin/node
Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
npm: 9.5.1 - ~/.volta/tools/image/node/18.16.0/bin/npm
SDKs:
Android SDK:
API Levels: 30, 31, 33
Build Tools: 30.0.3, 31.0.0, 33.0.0
System Images: android-33 | Google APIs Intel x86 Atom_64
IDEs:
Android Studio: AI-222.4459.24.2221.10121639
npmPackages:
@expo/metro-config: 0.10.7 => 0.10.7
babel-preset-expo: 9.5.1 => 9.5.1
expo: 49.0.6 => 49.0.6
metro: 0.76.7 => 0.76.7
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.72.3 => 0.72.3
react-native-web: 0.19.7 => 0.19.7
Expo Workflow: managed
Reproducible demo or steps to reproduce from a blank project
The text was updated successfully, but these errors were encountered: