Codegen chokes on imported types #38769
Labels
Needs: React Native Team Attention
Never gets stale
Prevent those issues and PRs from getting stale
Tech: Codegen
Related to react-native-codegen
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
It seems codegen currently chokes on types imported from a different module, i.e. consider this example:
When running the build (for Android on Ubuntu system) the codegen chokes on the method definition saying
UnsupportedGenericParserError: Module NativeReactNativeMyModule: Unrecognized generic type 'MyType' in NativeModule spec.
This equivalent code works fine though:
React Native Version
v0.72.3
Output of
npx react-native info
N/A
Steps to reproduce
N/A
Snack, code example, screenshot, or link to a repository
N/A
The text was updated successfully, but these errors were encountered: