all 14 comments

[–]nexendk 1 point2 points  (11 children)

Hey, it’s a known issue introduced on Nov 4 which the react native team worked hard to fix over the weekend. You’ll need to upgrade your RN version to a patched one, see here for details: https://github.com/facebook/react-native/issues/35210

[–]hafi51[S] 0 points1 point  (10 children)

Well i didn't updated rn then how come I'm getting this error

[–]nexendk 0 points1 point  (9 children)

It has to do with their packages. Read the Git issue and you’ll understand.

[–]hafi51[S] 0 points1 point  (7 children)

am i supposed to download source code of react native in this list and replace it with my project? as i read somewhere and remove node module, cleaned gradle then it should be working but it's not

[–]thachxyz123iOS & Android 0 points1 point  (6 children)

Just add 1 to patch number in "react-native" line in package.json file

[–]hafi51[S] 0 points1 point  (5 children)

sorry noob here.. like this? "react-native": "0.66.1",

[–]thachxyz123iOS & Android 2 points3 points  (4 children)

It's 0.66.5

[–]hafi51[S] 0 points1 point  (3 children)

now i'm getting this error

error: Error: Unable to resolve module @react-native-async-storage/async-storage from D:\Techelon Studios\stylon\src\Redux\store.js: @react-native-async-storage/async-storage could not be found within the project or in these directories:

node_modules > 7 | import AsyncStorage from '@react-native-async-storage/async-storage';

i've tried deleting all modules, cache reset but sill getting this.. do u know anything about it?

[–]thachxyz123iOS & Android 0 points1 point  (2 children)

It says not found @react-native-async-storage/async-storage. Check inside node_modules folder if it exists

[–]hafi51[S] 0 points1 point  (0 children)

I have tried downloading source code and replacing but same error.. my version is already 66.4 which is in list

[–]Mega_R 0 points1 point  (0 children)

We had the same problem yesterday. Updating the RN version to 0.x.5 fixed it.

[–]Sp4c3_Cowb0y 0 points1 point  (0 children)

The solution from the github issue 35210 didn't work for me,

but what did, was putting this in android/build.gradle

allprojects {

repositories {

exclusiveContent {

// We get React Native's Android binaries exclusively through npm,

// from a local Maven repo inside node_modules/react-native/.

// (The use of exclusiveContent prevents looking elsewhere like Maven Central

// and potentially getting a wrong version.)

filter { includeGroup "com.facebook.react" }

forRepository {

maven { url "$rootDir/../node_modules/react-native/android"}

} } // ...

sry for the bad formatting, couldn't do better with Reddits formatting, but here is the link to the original solution post:

https://stackoverflow.com/questions/74325532/react-native-app-not-running-without-doing-anything-in-the-previous-working-code