We are on the managed workflow with a monorepo running Yarn 3. Our .yarnrc.yml config for the mobile app directory has nmHoistingLimits: workspaces
so none of our dependencies are hoisted.
eas-cli version:
eas-cli/3.1.1 darwin-arm64 node-v16.13.0
When I try to create an eas dev client with eas build --profile demo --platform ios
, I’m getting the following error:
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec`
[stderr] node:internal/modules/cjs/loader:988
[stderr] throw err;
[stderr] ^
[stderr] Error: Cannot find module 'react-native/package.json'
[stderr] Require stack:
[stderr] - /Users/expo/workingdir/build/node_modules/expo-dev-menu/[eval]
[stderr] at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
[stderr] at Function.Module._load (node:internal/modules/cjs/loader:833:27)
[stderr] at Module.require (node:internal/modules/cjs/loader:1057:19)
[stderr] at require (node:internal/modules/cjs/helpers:103:18)
[stderr] at [eval]:1:1
[stderr] at Script.runInThisContext (node:vm:129:12)
[stderr] at Object.runInThisContext (node:vm:313:38)
[stderr] at node:internal/process/execution:79:19
[stderr] at [eval]-wrapper:6:22
[stderr] at evalScript (node:internal/process/execution:78:60) {
[stderr] code: 'MODULE_NOT_FOUND',
[stderr] requireStack: [ '/Users/expo/workingdir/build/node_modules/expo-dev-menu/[eval]' ]
[stderr] }
[!] Failed to load 'expo-dev-menu' podspec:
[!] Invalid `expo-dev-menu.podspec` file: no implicit conversion of nil into String.
# from /Users/expo/workingdir/build/node_modules/expo-dev-menu/expo-dev-menu.podspec:24
# -------------------------------------------
#
> folly_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DRNVERSION=' + rnVersion + ' -DRNPATCHVERSION=' + rnPatchVersion
# folly_compiler_flags = folly_flags + ' ' + '-Wno-comma -Wno-shorten-64-to-32'
# -------------------------------------------
pod exited with non-zero code: 1
I originally thought it might be an issue with expo-dev-menu
getting hoisted and not seeing the react-native
package. But as I mentioned above, we have yarn 3 configured to not hoist dependencies. I also checked my local node_modules
directory, and both react-native and expo-dev-menu are there.
Any ideas what might be wrong?
For any Expo developers who see this, here’s a link to the build: