Using path aliases with tRPC in a monorepo always causes problems. The best solution is to avoid them and use relative imports in your tRPC related files.
But you could try to define your path aliases in both the backend package.json and frontend package.json, e.g. "sync" them