Codegen complains about unsupported spec type despite of using includesGeneratedCode: true
#48621
Labels
Needs: Triage 🔍
Platform: iOS
iOS applications.
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
I'm developing Turbo Native Module, which utilizes Event Emitter JS Spec.
The Event Emitter JS Spec was cherry-picked in 0.76.2, so applications using rn version lower than 0.76.2 would break build when they try to build with my library.
So I decided to include generated codes, as documented in codegen documentation, by setting
includesGeneratedCode
flag totrue
.What I expect is as we offers generated code with our library, codegen doesn't need to(and must not) run by application level for our library's JS spec because in the codegen documentation it says:
But when I try to build application running on rn lower than 0.76.2 (via running
npx @react-native-community/cli codegen
) with included generated code, it still complains about theUnsupportedModulePropertyParserError
(detailed error log in below).Am I misunderstanding the
includesGeneratedCode
option?Steps to reproduce
yarn install
npx @react-native-community/cli codegen
React Native Version
0.74.6 - 0.76.1
Affected Platforms
Runtime - iOS, Build - MacOS
Areas
Codegen
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/wjaykim/rn-codegen-issue-reproducer
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: