allenwhun
allenwhun4w ago

procedures on routers are typed any

I'm using the better-t-stack. It also uses turborepo for trpc.
No description
No description
Solution:
Hi @Khojo & @ToolReaz I've made an issue to the official repository. Feel free to follow along and try the suggestions other said. https://github.com/AmanVarshney01/create-better-t-stack/issues/177...
GitHub
TRPC import cycle fails on client · Issue #177 · AmanVarshney01/c...
Stack used: Hono Drizzle React Native tRPC Problem faced: I'm trying to import the router that I created in a separate file and I when I try to merge the routers to the app router. The merged r...
Jump to solution
9 Replies
allenwhun
allenwhunOP4w ago
the test router is typed correcty. It's just the spending router
Khojo
Khojo4w ago
hey did you fix this issue @allenwhun i am facing the exact same and i also used the better-t-stack
allenwhun
allenwhunOP4w ago
unfortunately, no. Let me know if you encounter the fix!
Khojo
Khojo3w ago
Alright
ToolReaz
ToolReaz3w ago
Hello, having the same issue since days. Using a monorepo with one folder for api and one for web app. I have tweaked tsconfig in all possible ways and locked TRPC's version to 11.1.0 in both apps but can't figure it out :/ I separated routers in subfiles, maybe it's the merge that is causing the issue ? Or a cycling import of trpc/publicProcedure ? 🤔 Would be nice if you had any v11 updated example repo to compare !
Solution
allenwhun
allenwhun3w ago
Hi @Khojo & @ToolReaz I've made an issue to the official repository. Feel free to follow along and try the suggestions other said. https://github.com/AmanVarshney01/create-better-t-stack/issues/177
GitHub
TRPC import cycle fails on client · Issue #177 · AmanVarshney01/c...
Stack used: Hono Drizzle React Native tRPC Problem faced: I'm trying to import the router that I created in a separate file and I when I try to merge the routers to the app router. The merged r...
Khojo
Khojo3w ago
@allenwhun thanks @allenwhun @ToolReaz mine has been resolved. All I had to do was change imports in the procedures to relative imports. Details in the issue
ToolReaz
ToolReaz3w ago
Thanks, it works for me as well ! Just gonna remove alias in my ts configs i guess
allenwhun
allenwhunOP3w ago
It also fixed mine

Did you find this page helpful?