-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
RN 0.63 Update - Unable to resolve module ../Components/AccessibilityInfo/AccessibilityInfo
#5965
Comments
Looks like a dupe of #5604 |
Seems that a similar issue, but my RNW is 0.59 instead of vnext. |
#5604 is a different issue. This is a metro config issue, not a runtime issue. I forget the exact setup required for 0.59, but the fact that metro is loading |
@virginiarcruz Can you provide some more info like your metro config? We've been through a lot between 0.59 and 0.63. Like a lot a lot. So we're glad to see you going through this upgrade but a fair amount has happened. How are you approaching your upgrade? Your best experience is likely going to be creating a new empty app and migrating your app JS/native content over to that. |
@chrisglein
And the metro.config has this config
|
I'm not sure what specifically is going to be wrong with that metro.config. May be fine but it's unclear what's in the blacklist? At first glance it looks like maybe fine? With you being in a monorepo you will need a custom config. We've seen this error with a stale cache before. Can you try this and let us know if it works or not? |
@chrisglein
Even doing the reset on bundle the app still displays the same error. 😔 |
Why are you blacklisting react-native-windows? That would cause it to not be able to load files from react-native-windows. Can you also check that your version of @react-native-community/cli is >= 4.9? |
@acoates-ms |
RN 0.63 needs a newer version of the CLI than that. -- You should have >= 4.9. |
@acoates-ms Btw, will be possible to have a 0.59 RNW version and 0.63 RN? |
My monorepo project structure is: /shared
also includes when I run
I am sure the module exists and in mobile other platforms works without any errors.
|
@ugrylmz, that import looks like maybe you meant it to be a relative import? './shared/src/setup' instead of 'shared/src/setup'? |
@acoates-ms , I tried but the result is same. |
Can you see if any of the information here helps: |
I tried
According to the link that you shared, i reconfigured the metro.config file as below:
|
I'm guessing you are using yarn workspaces, and the packages in question have been hoisted up to a location that isn't being included in the watchFolders? Can you provide information about where the @babel/runtime pacakge was installed to? Whats the location on disk of that packaage in node_modules, compared to these windows and shared folders. |
meta-point, is there something we can add to an info command to collect information about their metro env if they're having metro issues? e.g. create a github issue template for "I'm having metro problems" where it collects their metro.config.js, general project structure, etc. but automatic? |
Yes, I am using yarn-worksapaces,
/packages/mobile/node_modules/@babel/runtime/helpers /mobile | package.json
| babel.config.js
| metro.config.js
| react-native.config.js
|
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 14 days of this comment. |
Is there any solution to my problem? |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 14 days of this comment. |
It looks like to satisfy at least some of your dependencies @babel/runtime was hoisted to the root of the repo. So you'd need to include monorepo-project/node_modules in your watch folders. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 14 days of this comment. |
Has anyone solved the same problem? version: Unable to resolve module None of these files exist:
RCTFatal |
@lh9403 There were a lot of suggestions on this thread for what could be wrong. Have you tried the metro troubleshooting tips and other suggestions? |
Run |
@lh9403 Were you able to solve this? react-native: 0.64.2 |
I experienced the exact same issue on Android in RN 0.72.4 and deleting the |
I'm having issues updating the react-native version on RNW project.
Currently, the project has:
After the update, RN 0.59 for 0.63 then while building a react-native app, happen an error that says:
Is there any solution to my problem or this RNW version (0.59) has any limitation to the RN version (0.63)?
Thanks!
The text was updated successfully, but these errors were encountered: