expo-monorepo-example
expo-monorepo-example copied to clipboard
Test/react native share
Linked issue
Testing react-native-share in a pnpm monorepo because of this tweet.
Additional context
Want to try it out yourself?
- Clone the repository, go to root
-
$ pnpm install
-
$ pnpm build
-
$ cd apps/mobile
-
$ npx expo run:android|ios
EAS also seems to work: https://github.com/byCedric/expo-monorepo-example/actions/runs/3915548238/jobs/6693833419
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
expo-monorepo-example | ✅ Ready (Inspect) | Visit Preview | Jan 13, 2023 at 10:52PM (UTC) |
This pull request was automatically deployed using Expo GitHub Actions!
- Project: @bycedric/expo-monorepo
- Channel: pr-79
Seems to be working fine
Also testing it on EAS now: https://github.com/byCedric/expo-monorepo-example/actions/runs/3915548238/jobs/6693833419
@byCedric, I'm still getting this error (even after have used the patch):
![image](https://user-images.githubusercontent.com/8127858/212442170-2b679258-cf1c-4376-b857-7421a2b3ee21.png)
Any ideas about what could be causing this?
Complete error message here: https://gist.github.com/rodolphoasb/2fcb8b8a7e01b9b4fcc51b9b94c2fb60
My eas.json:
{
"cli": {
"promptToConfigurePushNotifications": false
},
"build": {
"monorepo": {
"cache": {
"key": "turbo",
"customPaths": ["../../node_modules/.cache/turbo"]
}
},
"development": {
"extends": "monorepo",
"developmentClient": true,
"distribution": "internal"
},
"sim-dev": {
"extends": "development",
"ios": {
"simulator": true,
"resourceClass": "m1-medium"
}
},
"preview": {
"distribution": "internal"
},
"production": {
"ios": {
"resourceClass": "m1-medium"
}
}
},
"submit": {
"production": {}
}
}
What I'm running:
eas build -p ios --profile sim-dev
Can you share a repo of your monorepo? It doesn't need to contain the app (e.g. drop all contents of the app, but keep the basic expo code), I'm more interested in the "skeleton" of the repository, e.g. where certain libraries are installed by pnpm. @rodolphoasb
@byCedric, Here's a very similar repo structure where the error is also happening: https://github.com/mercado-rural/technobody
Command that I'm running: eas build -p ios --profile development
.
Error: