Open michaelwijnands opened 4 months ago
i think default watchFolders will watch node_modules folder and libararies as well, maybe try to change the the watchFolders to be empty array to see whether that would fix the issue? watchFolders: []
,
@xiongemi Thanks for your reply. By default we have watchFolders: []
, the above was to try if Metro would work. So unfortunately watchfolders: []
doesn't help.
do you have a link to your repo?
Current Behavior
When trying to start the application, Metro doesn't compile the React Native app because: Metro has encountered an error:
When setting debug to true in
metro.config.js
, I notice a lot of errors saying:My metro.config.js:
One of the libs, @myappname/my-hn/config, only has 3 small TypeScript files. These files export some string etc, no rocket science or any heavy code at all. All other libs also are TS files.
Expected Behavior
I'd expect the application to build fine after upgrading React Native and changing the code as suggested by React Native Upgrade tool.
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
Yes, we also have an Angular app in our repo as we are currently migrating from Angular (web-app) with an Ionic app (mobile) to React and React Native.