I'm encountering issues while running my React Native application. When executing the command:
npx react-native run-android -- --warning-mode=all
I receive the following error:
`Task :@react-native-async-storage_async-storage:generateCodegenArtifactsFromSchema FAILED /node_modules/react-native/node_modules/@react-native/codegen/lib/generators/modules/GenerateModuleJniCpp.js:435 .map(property => ^
TypeError: Cannot read properties of undefined (reading 'map')`
It seems that react-native-codegen is failing during the build process due to an issue with the @react-native-async-storage/async-storage package. I would prefer not to modify files inside node_modules.
How can I resolve this issue in a clean and maintainable way?
I have already tried deleting node_modules and package.json, reinstalling dependencies, and cleaning the project.