React Native 0.78.0 IOS build TypeError: _NativeRNLocalize.default.getLocales is not a function (it is undefined) - Stack Overfl

admin2025-04-19  0

Just upgraded react native 0.75.4 to 0.78.0. Used the React Native Upgrade Helper and also followed this guide for RCTAppDependencyProvider.

When the build is run for IOS. There is an error that is thrown related to react-native-localize. This is at version 3.4.1.

I have tried different approaches to try and resolve this. These include:

Clearing all cache. Remove package-lock.json Removing node_modules Removing Podfile.lock Removing build folder Removing Pods

Then npm install followed by pod install.

But every time the error still occures:

Just upgraded react native 0.75.4 to 0.78.0. Used the React Native Upgrade Helper and also followed this guide for RCTAppDependencyProvider.

When the build is run for IOS. There is an error that is thrown related to react-native-localize. This is at version 3.4.1.

I have tried different approaches to try and resolve this. These include:

Clearing all cache. Remove package-lock.json Removing node_modules Removing Podfile.lock Removing build folder Removing Pods

Then npm install followed by pod install.

But every time the error still occures:

Share Improve this question asked Mar 4 at 0:04 ChiefChief 9631 gold badge15 silver badges34 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745066643a283027.html

最新回复(0)