tRPCttRPC
Powered by
FreddyF
tRPC•3mo 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"
"@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
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

trpc + expo react native issue
SonSSon / ❓-help
4y ago
Nextjs, Expo react native, Trpc Help
GeekydevGGeekydev / ❓-help
7mo ago
TextDecoder not implemented Trpc react-native httpBatchStreamLink
2035Builder22035Builder / ❓-help
2y ago
tRPC sockets with react
rocawearRrocawear / ❓-help
4y ago