BillyBob
BillyBob11mo ago

Looking for an up to date boilerplate for tRPC & Fastify.

Looking for an up to date boilerplate for tRPC & Fastify.
17 Replies
<DxD/>
<DxD/>11mo ago
GitHub
GitHub - maybemaby/fastify-trpc-next: A starter project monorepo wi...
A starter project monorepo with Fastify, tRPC, and Next.js. Monorepo setup with Turborepo and pnpm. - GitHub - maybemaby/fastify-trpc-next: A starter project monorepo with Fastify, tRPC, and Next.j...
<DxD/>
<DxD/>11mo ago
hope it helps
BillyBob
BillyBob11mo ago
thanks! I am having a nightmate with TS at the moment and imports. Are you competent in that area
<DxD/>
<DxD/>11mo ago
well...what's the problem ?
BillyBob
BillyBob11mo ago
sorry. ambiguous questions from me. Im going to restart using the template you sent above which looks nice and hopefully i dont get the errors again is that yours by the way ?
<DxD/>
<DxD/>11mo ago
ok nope i don't use Fastify
BillyBob
BillyBob11mo ago
express? or nest
<DxD/>
<DxD/>11mo ago
express
BillyBob
BillyBob11mo ago
Hey are you about? The problem i had is with importing from index.ts within a subfolder and i get the error Error: Must use import to load ES Module
<DxD/>
<DxD/>11mo ago
I need more details Or some cod
BillyBob
BillyBob11mo ago
https://github.com/lwears/moviedb when running npm run dev an issue with the importing from the folder routes it seems to be due to type: modulein package.json but when i remove that i get an error with superjson
<DxD/>
<DxD/>11mo ago
Have u try a npm install ?
BillyBob
BillyBob11mo ago
of course seems to be related to this https://github.com/blitz-js/superjson/issues/268 i get that error when removing type: module from package.json
<DxD/>
<DxD/>11mo ago
Ok, now I am not on my pc I will try this code when I am at my pc And try to find a solution
BillyBob
BillyBob11mo ago
thanks
<DxD/>
<DxD/>11mo ago
Is nice the project cuz I see there a way of doing auth with token And I’ve need trying for days to implement it
BillyBob
BillyBob11mo ago
i got it working thanks for your help