-
Notifications
You must be signed in to change notification settings - Fork 897
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 |
@miinos can you share a repro then, where we can reproduce this issue? |
i got the same error here too with latest version - react native: 0.74.1
C/C++: /Users/Workspace/xx/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp:74:10: error: use of undeclared identifier 'rncli_cxxModuleProvider'; did you mean 'rncli_ModuleProvider'? I could build & run iOS version, is it possible that I missed something to update when I do upgrade from 0.72 to 0.74.1? |
I have the same error as above, iOS build running fine. |
Facing same error on version 0.74.5 - System: |
@abhayagrawal-fareye please make sure that there's no package that overrides CLI packages, that was the solution for similar cases that you face - someone had an older dependency e.g. |
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: