-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to resolve module ./node_modules/expo-router/entry
in monorepo
#748
Comments
./node_modules/expo-router/entry
in monorepo
Tracked it down, it's an issue with monorepos, at least PNPM's. I can run it just fine in an isolated project. |
Create an import "expo-router/entry" Then remove the |
Thank you. That should be noted in the docs somewhere though, RN monorepo's already hard as it is. |
i'm still getting the below error only when building in release mode even after verifying the above. ❌ Metro encountered an error: |
@nathan-charles Its hard for us to assist you with a filepath issue when we cannot see your repo. Can you please create a new issue with a reproduction repo so we can assit you. |
@marklawlor Thanks for the reply I was finally was able to resolve my issue first I had to remove the See the release notes here: |
tried the
I tried the same thing but got this error instead. react-dom.development.js:18687 The above error occurred in the <withDevTools(Anonymous)> component:
Consider adding an error boundary to your tree to customize error handling behavior. |
I just created a fresh app:
Installed the modules with yarn & tested again with npm. Doing
package.json:
app.json:
|
Which package manager are you using? (Yarn is recommended)
pnpm (known issues due to Metro)
Summary
I can't start an app with Expo Router v2, Expo 49 and PNPM. I already tried
expo-router/entry
and manually specifying the node_modules path to both local and workspace. I also already tried with and without the.npmrc
settings.Minimal reproducible example
numerical-analysis.zip
The text was updated successfully, but these errors were encountered: