You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon upgrading to 0.72+, my app stops working. It still builds and runs, but certain features are fatally broken. The main things that are broken are:
redux-persist no longer finds persisted state correctly. A previously authenticated session is lost
Async functions hang
So far I've narrowed down my issue to the metro configuration. As soon as I merge my configuration with the new defaultConfiguration the app breaks as described. If I revert back to my old configuration, it works on iOS (but Android fails to build).
I may need to individually remove these extra entries to find the one one that is causing my issue, but I was wondering if anyone has ideas as to which configuration option (or options) specifically could be causing my issue.
Reproducible demo
Don't have one yet
The text was updated successfully, but these errors were encountered:
const{ getDefaultConfig, mergeConfig }=require('@react-native/metro-config');letdefaultConfig=getDefaultConfig(__dirname);const{ assetExts, sourceExts }=defaultConfig.resolver;/** * Metro configuration * https://reactnative.dev/docs/metro * * @type {import('metro-config').MetroConfig} */constconfig={transformer: {babelTransformerPath: require.resolve('react-native-svg-transformer'),minifierConfig: {keep_classnames: true,// Preserve class nameskeep_fnames: true,// Preserve function namesmangle: {keep_classnames: true,// Preserve class nameskeep_fnames: true,// Preserve function names},},},maxWorkers: 2,resolver: {assetExts: assetExts.filter(ext=>ext!=='svg'),sourceExts: [...sourceExts,'svg'],},};// If I use just the local config, my app works in an iOS simulator// Produced the working config in issue description// console.log(config);// module.exports = config;// If I use the merged config, my app breaks in the iOS simulatorconstmerged=mergeConfig(defaultConfig,config);// Produced the broken config in issue description// console.log(merged);module.exports=merged;
Environment
Things I’ve done to figure out my issue
Upgrading version
0.72.14
Description
Upon upgrading to 0.72+, my app stops working. It still builds and runs, but certain features are fatally broken. The main things that are broken are:
So far I've narrowed down my issue to the metro configuration. As soon as I merge my configuration with the new defaultConfiguration the app breaks as described. If I revert back to my old configuration, it works on iOS (but Android fails to build).
Working config:
Broken config:
I may need to individually remove these extra entries to find the one one that is causing my issue, but I was wondering if anyone has ideas as to which configuration option (or options) specifically could be causing my issue.
Reproducible demo
Don't have one yet
The text was updated successfully, but these errors were encountered: