Unable to run project after npm reinstalled #12967
-
I originally got this:
I thought that my project was a problem. I uninstalled npm, yarn and reinstalled them again. Now i get this same error. The details are here: npx react-native run-android
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor e: file:///C:/xxx/RN_Header/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextModule.kt:17:63 Type mismatch: inferred type is Map<String, Any>? but Any was expected FAILURE: Build failed with an exception.
BUILD FAILED in 9s |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
I have tried by changing the file back to the previous yarn version and it works well. There's obviously a problem with the current version. Please fix it. Case solved. |
Beta Was this translation helpful? Give feedback.
-
Reopen as issue not solved. |
Beta Was this translation helpful? Give feedback.
-
Can you help? Where's the website or link? I don't see it. I found what might be in discord. |
Beta Was this translation helpful? Give feedback.
As mentioned on many other threads, this is the support repo for building an app targeting Windows. You're running commands to build for Android:
npx react-native run-android
Ask your questions in the RN core repo.