-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
EAS Build looks in wrong place for Sentry CLI #32
Comments
Hi @jamesisaac! We are working with Sentry to get this resolved asap, you can follow along here getsentry/sentry-react-native#1857 |
Excellent, thanks! Sorry, presumed |
No worries! We probably will encounter this for some libraries in the future. But, we are actively trying to solve these types of issues either on our (Expo) side, or with the library maintainers. I'm glad you are one of the community members who warns us of these types of issues, so we can resolve them. Thanks for that ❤️ |
I managed to make it work in ejected and not ejected expo projects. The problem only occurred in monorepo; the main problem is that the Sentry CLI path is hardcoded. Ejected Expo:This expo/sentry-expo#217 (comment) (iOS section) will do the project to build with EAS correctly. Not ejected Expo:By adding nohoist option to yarn workspace:
|
That's definitely a good workaround for now. At least until getsentry/sentry-react-native#1912 is solved. If Sentry respects the path on iOS (on Android they already do I believe), we can actually use that instead of the workaround. |
@byCedric still seeing this issue in a monorepo with expo 48 |
Hi there, thanks for the recent work in improving monorepo support in Expo 43, much appreciated.
I've followed along closely to the changes here and in Expo 43, and attempted to follow a similar migration path for one of my projects (Expo Managed workflow) so it can take advantage of EAS Build and Submit.
It has worked well overall, and I was able to get an Expo 43 monorepo project building on EAS Build for iOS and Android. However, when I then try and do the final remaining step of removing
expo-yarn-workspaces
(which seemed necessary as it was causing issues in the Expo Web app), this breaks the mobile app under EAS Build on the Sentry step. The error reported by EAS Build servers suggests that it's looking in the child package node_modules folder for Sentry, which it won't be able to find anymore asexpo-yarn-workspaces
is not doing symlinking.Android error from EAS build log
iOS error from EAS build log
I've checked carefully and do believe I'm following all the relevant steps for Sentry setup.
packages/mobile/app.config.js
snippetpackages/mobile/package.json
snippetIs there some way of hinting to the sentry-expo "plugin" that the project is a monorepo, so it can make the appropriate adjustments for locating Sentry CLI? Everything I'm reading says that in Expo 43 symlinking with
expo-yarn-workspaces
is no longer necessary and module resolution should just work, but that doesn't seem to be the case here.yarn.lock package versions:
@sentry/react-native
: 2.6.2expo
: 43.0.2sentry-expo
: 4.0.3The text was updated successfully, but these errors were encountered: