In your post, please share:
Whether you are bare or managed workflow
What you have tried so far
I have a monorepo that is structured the same way the Expo monorepo guide shows, but for some reason when I try to build the app it is not able to resolve the modules from our packages. It is replacing the alias with two too many
error Unable to resolve module ../../../../packages/app/navigation/native
When it’s only two directories higher, just like the app structure in the guide.
I also get these errors
[RUN_GRADLEW] * ../../packages/app/navigation/native(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json) [RUN_GRADLEW] * ../../packages/app/navigation/native/index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
Which seems to show a different path for the module resolution.
I took a look at the build folder by passing
EAS_LOCAL_BUILD_SKIP_CLEANUP=1 and the files are all there in the correct location.
The directory structure is as follows:
___App.js (Where the module is being imported)
How can I fix this?