Ole Asteo
Ole Asteo
TtRPC
Created by Ole Asteo on 10/13/2024 in #❓-help
Re: relative imports to trpc.ts
I finally discovered the root cause. It's a typescript issue. By implication you can call this a setup issue. I stay humbled @Nick Lucas 🙏 Basically, using tsconfig paths within the child packages in monorepos is a bad idea :/ The server/user.router.ts will use the client/tsconfig.json#paths for module resolution during the import from client/index.ts (in contrast to imports from within server/). So, having a single @/ alias for the src/ dir of the current package seems impossible (unless you risk a merged type alias). I'll update the PR and improve the description in FAQ/Troubleshooting. Sorry for the tumult.
5 replies
TtRPC
Created by Ole Asteo on 10/13/2024 in #❓-help
Re: relative imports to trpc.ts
@julius is going to look into this. I don't think we need to multiple people look into this at once. So, I say we wait for his investigation first. Hit me up if I need to clarify anything further, but I think you understand the issue 🙂
5 replies
TtRPC
Created by Ole Asteo on 10/13/2024 in #❓-help
Re: relative imports to trpc.ts
PS: Sorry for being all over the place. #❓-help does not show up in forwarding dialogs as it's not a text channel ^^
5 replies