You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codegen flow and typescript parsers infinite loop caused by circular aliases #57956
a current workaround is to either use the namespace e.g. CodegenTypes.Double everywhere
or rename your type alias to e.g. type _Double = CodegenTypes.Double for now
isolates this to codegen flow parser (not the ts one)
i.e. packages\react-native-codegen\src\parsers\flow\parser.js
it looks like getResolvedTypeAnnotation (called indirectly in RNFlowParser/RNModuleParser/RNParserCommons)
is looping infinitely in the for loop so we need to break on circular type aliases
by monkey patching node_modules\@react-native\codegen\lib\parsers\flow\parser.js
managed to get it working so can propose a fix for the flow parser
it looks like it also happens with the ts parser, so can follow-up with a similar (if not the same) fix there too
Missing reproducer: We could not detect a reproducible example in your issue report. Reproducers are mandatory and we can accept only one of those as a valid reproducer:
For majority of bugs: send us a Pull Request with the RNTesterPlayground.js edited to reproduce your bug.
Activity
react-native-bot commentedon Aug 13, 2026
Warning
Missing reproducer: We could not detect a reproducible example in your issue report. Reproducers are mandatory and we can accept only one of those as a valid reproducer:
You can read more about about it on our website: How to report a bug.
fix: replace deep RN imports with public API
fix: replace deep RN imports with public API
fix(codegen): infinite loop on type aliases that shadow CodegenTypes …
fix(codegen): infinite loop on type aliases that shadow CodegenTypes …