-
-
Notifications
You must be signed in to change notification settings - Fork 354
Open
Description
What React Native libraries do you use?
Expo Application Services (EAS)
Are you using sentry.io or on-premise?
sentry.io (SaS)
@sentry/react-native SDK Version
7.2.0
How does your development environment look like?
⬇ Place the `npx react-native@latest info` output here. ⬇
System:
OS: macOS 15.1
CPU: (8) arm64 Apple M3
Memory: 147.92 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.17.0
path: /Users/cheriansabby/.nvm/versions/node/v22.17.0/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.9.2
path: /Users/cheriansabby/.nvm/versions/node/v22.17.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 24.0.2
path: /opt/homebrew/opt/openjdk/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.2
wanted: latest
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.81.4
wanted: 0.81.4
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: true
newArchEnabled: true
info React Native v0.82.1 is now available (your project is running on v0.81.4).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.82.1
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.81.4&to=0.82.1
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
Sentry.init()
Sentry.init({
dsn: CONSTANT.SENTRY_DNS_URL,
sendDefaultPii: true,
integrations: [Sentry.feedbackIntegration()],
enabled: isProduction,
});Steps to Reproduce
- Initially was running sentry 6.20.0. When creating a new build on eas ran into the issues of
countLines is not a function
TypeError: countLines is not a function
TypeError: countLines is not a function
at createDebugIdModule (/Users/expo/workingdir/build/node_modules/@sentry/react-native/src/js/tools/sentryMetroSerializer.ts:182:22)
- Upgraded version sentry 7.20.0.
- Ran the wizard npx @sentry/wizard@latest -i reactNative .Performed the steps in the wizard. Tested and received the sentry log in the sentry SAS dashboard
- Changed my metro.config.js
const { getSentryExpoConfig } = require("@sentry/react-native/metro");
const { withNativeWind } = require("nativewind/metro");
const { withSentryConfig } = require("@sentry/react-native/metro");
//const projectRoot = __dirname;
// ✅ Always start with the Expo default config
//let config = getDefaultConfig(projectRoot);
let config = getSentryExpoConfig(__dirname);
// ✅ Apply NativeWind wrapper first
config = withNativeWind(config, { input: "./global.css" });
// ✅ Apply Sentry wrapper last (it modifies some bundler options)
config = withSentryConfig(config);
module.exports = config;
- Ran the project on my simulator. Worked Fine
- Tried Creating a new build eas build --profile production --platform ios
Expected Result
Build Should have got created on EAS. Till two weeks back builds were getting create on EAS
Actual Result
EAS Bundle JavaScript Step Failure
yarn run v1.22.22
$ /Users/expo/workingdir/build/node_modules/.bin/expo export:embed --eager --platform ios --dev false
Starting Metro Bundler
iOS node_modules/expo-router/entry.js ▓▓▓▓▓░░░░░░░░░░░ 35.5% (484/866)
iOS node_modules/expo-router/entry.js ▓▓▓▓▓▓▓▓░░░░░░░░ 53.9% (1758/2394)
iOS node_modules/expo-router/entry.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░ 92.1% (3351/3491)
Debug ID module found. Skipping Sentry Debug ID module...
iOS Bundling failed 10531ms node_modules/expo-router/entry.js (3749 modules)
Cannot read properties of undefined (reading 'match')
TypeError: Cannot read properties of undefined (reading 'match')
TypeError: Cannot read properties of undefined (reading 'match')
at determineDebugIdFromBundleSource (/Users/expo/workingdir/build/node_modules/@sentry/react-native/src/js/tools/utils.ts:75:22)
at /Users/expo/workingdir/build/node_modules/@sentry/react-native/src/js/tools/sentryMetroSerializer.ts:77:53
at Generator.next (<anonymous>)
at fulfilled (/Users/expo/workingdir/build/node_modules/@sentry/react-native/dist/js/tools/sentryMetroSerializer.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Metadata
Metadata
Assignees
Projects
Status
Waiting for: Community