Freddy
Freddy2w ago

react-native crashes with trpc > 11.3.0

Hey, I am currently setting up trpc in our codebase. We have a monorepo with React webapp, Express.js API (node 20) and React-native mobile app (Expo 53). Once I add "@trpc/client": "^11.7.2" as a dependency to the mobile app, it crashes on start immediately. The logs show this error.
_unstableCoreDoNotImport.createRecursiveProxy is not a function (it is undefined)
_unstableCoreDoNotImport.createRecursiveProxy is not a function (it is undefined), js engine: hermes
Error: Couldn't find a 'component', 'getComponent' or 'children' prop for the screen 'App'. This can happen if you passed 'undefined'. You likely forgot to export your component from the file it's defined in, or mixed up default import and named import when importing.
_unstableCoreDoNotImport.createRecursiveProxy is not a function (it is undefined)
_unstableCoreDoNotImport.createRecursiveProxy is not a function (it is undefined), js engine: hermes
Error: Couldn't find a 'component', 'getComponent' or 'children' prop for the screen 'App'. This can happen if you passed 'undefined'. You likely forgot to export your component from the file it's defined in, or mixed up default import and named import when importing.
Using 11.3.1 works just fine, 11.4.0 and newer does not. I figured this out some time ago and waited a bit if it would be resolved by chance 😄 Any help on solving or debugging the issue or guidance on what info is needed to help would be highly appreciated
3 Replies
Nick
Nick2w ago
Could you open a github issue with details and a reproduction please? Weird that this has broken
Freddy
FreddyOP2w ago
Yes can do. Will need to figure out how to setup the reproduction though.
Weird that this has broken
That's what I thought 😄
Nick
Nick2w ago
A full stack trace at least. That error looks like a possible you issue honestly, but I appreciate you’ve compared versions and found it to be tRPC

Did you find this page helpful?