-
Notifications
You must be signed in to change notification settings - Fork 626
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
Getting error "Unable to resolve module react-native" when upgrading from 0.70.7 to 0.73.9 #1337
Comments
Can someone please look into the issue? It's currently blocking us from shipping important changes. |
If that doesn't help, we'll need a minimal reproduction. Obviously most people aren't running into this issue. |
Thanks for the suggestions @robhogan. I tried adding the changes you recommended, now I am seeing an issue where the dev server won't start: I am running npx react-native start --verbose and I see it gets stuck here. I don't get the message "Dev server ready". And I don't know how to check where it's getting stuck.
Any idea why this might happen? |
@robhogan Actually, it does start the dev server, but it takes a terrible amount of time to finally get there. Then during the bundle load, I get the following error:
|
@rohanp-91 try running this:
or
(it's up to you if you want to keep the |
see: facebook/metro#1337 (comment) Signed-off-by: Rifa Achrinza <[email protected]>
see: facebook/metro#1337 (comment) Signed-off-by: Rifa Achrinza <[email protected]>
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
I am upgrading from RN 0.70.7 to RN 0.73.9. I followed the React Native Upgrade Helper and have been able to successfully build my iOS project (haven't gotten to Android yet).
However, when I run metro dev server locally, it keeps failing with the following when loading the bundle:
I have a mono-repo and I can see that the react-native module is present within node_modules in the "mobile-app" folder as well as in the node_modules at the project root. So, I am not sure why it's having an issue resolving it.
This is my metro.config.js:
And this is my babel.config.js:
If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can
yarn install
andyarn test
.What is the expected behavior?
It should be able to resolve the react-native module
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
yarn 1.22.21
node 22.4.1
macOS 14.6
The text was updated successfully, but these errors were encountered: