newArchEnabled: Cannot specify link libraries for target "react_codegen_RNAuth0Spec" which is not built by this project

I have enabled newArchEnabled and builds are failing for Android.

Debugging: I can build the app successfully by removing react-native-auth0.
Version: 3.0.2
Issue: react_codegen_RNAuth0Spec
Logs:

CMake Error /node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:124 (target_link_libraries):
Cannot specify link libraries for target “react_codegen_RNAuth0Spec” which
is not built by this project.

react-native-auth0 version

3.0.2

React Native version

0.72.7