FreddyF
tRPC2mo ago
4 replies
Freddy

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.

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
Was this page helpful?