-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undeclared identifer in OnLoad.cpp.o #2380
Comments
same problem on android build with new architecture |
cc @cortinico |
that happens when the version of React Native and the CLI are not aligned. |
Fixed the issue by adding to the package.json file: "resolutions": {
"@react-native-community/cli": "13.6.6",
"@react-native-community/cli-clean": "13.6.6",
"@react-native-community/cli-config": "13.6.6",
"@react-native-community/cli-debugger-ui": "13.6.6",
"@react-native-community/cli-doctor": "13.6.6",
"@react-native-community/cli-hermes": "13.6.6",
"@react-native-community/cli-platform-android": "13.6.6",
"@react-native-community/cli-platform-ios": "13.6.6",
"@react-native-community/cli-server-api": "13.6.6",
"@react-native-community/cli-tools": "13.6.6",
"@react-native-community/cli-types": "13.6.6"
} |
hey @miinos I'm glat that it works for you, however adding yarn why @react-native-community/cli |
without resolutions: ├─ react-native@npm:0.73.6
│ └─ @react-native-community/cli@npm:12.3.6 (via npm:12.3.6)
│
├─ react-native@npm:0.74.1
│ └─ @react-native-community/cli@npm:13.6.6 (via npm:13.6.6)
│
├─ react-native@npm:0.74.1 [51e67]
│ └─ @react-native-community/cli@npm:13.6.6 (via npm:13.6.6)
│
└─ react-native@npm:0.73.6 [eb6a2]
└─ @react-native-community/cli@npm:12.3.6 (via npm:12.3.6) with resolutions ├─ react-native@npm:0.73.6
│ └─ @react-native-community/cli@npm:13.6.6 (via npm:13.6.6)
│
├─ react-native@npm:0.74.1
│ └─ @react-native-community/cli@npm:13.6.6 (via npm:13.6.6)
│
├─ react-native@npm:0.74.1 [51e67]
│ └─ @react-native-community/cli@npm:13.6.6 (via npm:13.6.6)
│
└─ react-native@npm:0.73.6 [eb6a2]
└─ @react-native-community/cli@npm:13.6.6 (via npm:13.6.6) |
Looks like you're having different versions of |
In my |
Environment
Description
When building an Android app using the new architecture, there's an error on the generated cpp files. I've tried cleaning gradle and reinstalling node_modules but nothing worked.
The app is inside a NX monorepo.
The text was updated successfully, but these errors were encountered: