Closed mobinni closed 1 month ago
The resolution in this thread fixed it https://github.com/facebook/metro/issues/1191
const config = {
server: {
rewriteRequestUrl: (url) => {
return url.replace("&lazy=true", "&lazy=false");
},
},
};
Do you want to request a feature or report a bug? Bug
What is the current behavior?
When I upgraded from
0.72.11
to0.73.9
I also upgraded my metro to be on version0.80.12
On iOS everything works fine with the bundler, however when we run the Android app with the bundler it fails to find.cxx
files.We get the following error:
When we downgrade back to metro
0.76.0
everything on Android works fine however, I'm wondering if for some reason it's assuming new architecture for Android? Not really sure how to debug this or create a reproducible mini example as it works fine for iOS.Metro config:
customTransformer:
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system. Node: 20.11 Yarn 1.22.22 Mac: Sonoma 14.7
Update 1 So the error above wasn't actually the root error, the root error was it could not find the files related to my monorepo structure stemming from a lazy import.
So I feel like I've tracked this down to be an issue specifically in Android on
0.73.9
where dynamic importsimport(...)
are breaking for lazy loaded screens in react-navigation.When I change my imports to be top-level everything loads fine
Update 2
So I feel like I've tracked this down to be an issue specifically in Android on
0.73.9
where dynamic importsimport(...)
are breaking for lazy loaded screens in react-navigation.When I change my imports to be top-level everything loads fine. Not sure how to resolve this, but will try to make a reproduction