Unable to resolve "react-native" on Monorepo project

I’m trying to insert an Expo application inside a monorepo project, but I get an error with React Native. I used expo-yarn-workspaces and metro-config, but only the web is working. I pasted the error above.


  Expo CLI 3.13.1 environment info:
      OS: macOS 10.15.2
      Shell: 5.7.1 - /bin/zsh
      Node: 12.16.1 - /var/folders/cg/776y_8l900qdrgww25ylv47h0000gn/T/yarn--1583372700609-0.6789692417621209/node
      Yarn: 1.21.1 - /var/folders/cg/776y_8l900qdrgww25ylv47h0000gn/T/yarn--1583372700609-0.6789692417621209/yarn
      npm: 6.13.4 - ~/.nvm/versions/node/v12.16.1/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
      Android Studio: 3.1 AI-173.4720617
      Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
      expo: 36.0.2 => 36.0.2
      react: ~16.9.0 => 16.9.0
      react-native: https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz => 0.61.4

It’s the managed workflow as a package inside a monorepo project.

Steps to Reproduce / Reproducible Demo

you can see the edited files here: https://github.com/FotonTech/golden-stack/pull/30

Expected Behavior

Run at iOS Simulator successfully

Actual Behavior

Opening iOS simulator
Opening exp:// in iOS simulator
Unable to resolve "react-native" from "../../node_modules/expo/build/Expo.fx.js"
Failed building JavaScript bundle.
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.