tRPC standalone server in monorepo

NNEO4/7/2023
Hi,
I'm using t3-stack monorepo as my base and I've swapped out NextJS backend for standalone HTTP server but I just can't get it work

Discord wouldn't let me post the code as it was too long so I've uploaded the api.ts and client.ts along with the error to gist
https://gist.github.com/neo773/7c8a314785d5e4f54c724cde7e5fa65c
Nnlucas4/7/2023
What doesn’t work? What errors/output?
NNEO4/7/2023
Check the third file in gist for the error
NNEO4/7/2023
That’s what I get at this line
export const trpc = createTRPCReact<AppRouter>()
Nnlucas4/7/2023
Oh are you running all the latest & exact same versions of tRPC dependencies?
Nnlucas4/7/2023
That's a new response code we added I think, it's important to keep versions in line
NNEO4/7/2023
Yes, as I said before I’m using t3 stack monorepo template and the server and client have the same version of trpc
Nnlucas4/7/2023
Maybe worth nuking the lock file just to be sure. I’m on the move now so can have another look over later, but it reads like a version mismatch
NNEO4/7/2023
Turns out it was the package manager bun, installing the deps with pnpm worked fine
Nnlucas4/7/2023
It always seems to be bun
NNEO4/7/2023
They had a new update recently which added support for workspaces so I thought I'd give it a shot, anyway thanks for looking.
Nnlucas4/7/2023
Yeah it's a really exciting project, just quite early days and many people have come in with strange issues later found to be Bun's fault
Nnlucas4/7/2023
Glad you sorted it 🙂