expo-monorepo-example icon indicating copy to clipboard operation
expo-monorepo-example copied to clipboard

Test/react native share

Open byCedric opened this issue 1 year ago • 7 comments

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

byCedric avatar Jan 13 '23 22:01 byCedric

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)

vercel[bot] avatar Jan 13 '23 22:01 vercel[bot]

This pull request was automatically deployed using Expo GitHub Actions!

  • Project: @bycedric/expo-monorepo
  • Channel: pr-79

github-actions[bot] avatar Jan 13 '23 22:01 github-actions[bot]

image

Seems to be working fine

byCedric avatar Jan 13 '23 22:01 byCedric

Also testing it on EAS now: https://github.com/byCedric/expo-monorepo-example/actions/runs/3915548238/jobs/6693833419

byCedric avatar Jan 13 '23 23:01 byCedric

@byCedric, I'm still getting this error (even after have used the patch):

image

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

rodolphoasb avatar Jan 14 '23 00:01 rodolphoasb

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 avatar Jan 14 '23 01:01 byCedric

@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:

image

rodolphoasb avatar Jan 16 '23 05:01 rodolphoasb