Ole Asteo
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