T
tRPC

❓-help

VS Code becomes unresponsive

Zzrilman6/8/2023
Hello everyone, I've started to experience huge performance issues with my project that's based on create-t3-app. The issue is that after some work the intellisense and every extension becomes unresponsive. I'm aware that tRPC projects have issues with defining query/mutation props as any sometimes. But this is another level. It occurs randomly, after 5-10mins of work. The only solution for now is to quit VS Code. Then I reopen it and it crashes, after the crash I can open it and continue working normally as I usually do. Could it be possible that type aliases cause this issue? Here's how my tsconfig.json looks like
"baseUrl": ".",
"paths": {
"@pages/*": ["src/pages/*"],
"@schemas": ["./src/common/schemas/index"],
"@schemas/*": ["./src/common/schemas/*"],
"@endpoints": ["./src/common/endpoints.ts"],
"@components/*": ["./src/components/*"],
"@providers": ["./src/providers/index.ts"],
"@api": ["./src/utils/api.ts"],
"@apiRoot": ["./src/server/api/root.ts"],
"@trpc": ["./src/server/api/trpc.ts"],
"@hooks": ["./src/common/hooks/index.ts"],
"@hooks/*": ["./src/common/hooks/*"],
"@zodSchemas": ["./src/common/schemas/index.ts"],
"@constants": ["./src/common/constants.ts"],
"@utils": ["./src/common/utils.ts"],
"@typePredicates": ["./src/common/typePredicates.ts"],
"@vapidkeys": ["src/common/vapidKeys.ts"],
"@services": ["src/server/api/services/index.ts"],
"@services/*": ["src/server/api/services/*"],
"@stripe": ["src/server/stripe/index.ts"],
"@db": ["src/server/db.ts"],
"@auth": ["src/server/auth.ts"]
},
"baseUrl": ".",
"paths": {
"@pages/*": ["src/pages/*"],
"@schemas": ["./src/common/schemas/index"],
"@schemas/*": ["./src/common/schemas/*"],
"@endpoints": ["./src/common/endpoints.ts"],
"@components/*": ["./src/components/*"],
"@providers": ["./src/providers/index.ts"],
"@api": ["./src/utils/api.ts"],
"@apiRoot": ["./src/server/api/root.ts"],
"@trpc": ["./src/server/api/trpc.ts"],
"@hooks": ["./src/common/hooks/index.ts"],
"@hooks/*": ["./src/common/hooks/*"],
"@zodSchemas": ["./src/common/schemas/index.ts"],
"@constants": ["./src/common/constants.ts"],
"@utils": ["./src/common/utils.ts"],
"@typePredicates": ["./src/common/typePredicates.ts"],
"@vapidkeys": ["src/common/vapidKeys.ts"],
"@services": ["src/server/api/services/index.ts"],
"@services/*": ["src/server/api/services/*"],
"@stripe": ["src/server/stripe/index.ts"],
"@db": ["src/server/db.ts"],
"@auth": ["src/server/auth.ts"]
},
Nnlucas6/9/2023
Ctrl+Shift+P "restart typescript" That should sort it without a full restart I've been experience language server issues in TS since the beginning of time. Typesafe tools like tRPC don't help matters though
Zzrilman6/11/2023
I've tried, but the issue remains :/
DDani;6/11/2023
could be related to an extension, try to open up a "vanilla" vscode instance and see if that works

Looking for more? Join the community!

Recommended Posts
Middleware-ish for clientHi! I had a quick question about client-side usage: I have users with long-running sessions, and iWhy cannot I specify a mutation input with useQueryKey?It's supported with queries, but for some reason not with mutations. Why is this the case?how to connect trpc server (t3 stack) from my external nextjs app?how to connect trpc server (t3 stack) from my external nextjs app?trpc.legacyRouterName.procedure "does not exist" on type CreateTRPCNextBase, runs anywayHave reached the end of a massive trpc 9 -> trpc 10 migration, executed using the official guide witNot getting legacy router ops in merged tRPC 9 routerFollowed the guide to merge my large tRPC 9 router with tRPC 10, but now I can't use useQuery or acccreateTRPCNext Type Error + useQuery Not DefinedI'm trying to use the conventions for `createTRPCNext ` from https://github.com/trpc/examples-next-pRead response headers on the clientIve been searching for a while trying to figure out how to access response headers on the client. FoIs it possible to access context in input?Hi, I have a validator that requires to get context of prisma in the `input`, Is it possible to get TRPCContextState not found in v10In our v9 app, we used TRPCContextState from internals to type out TRPC utils, importing it like `imRateLimiter for fastify tRPC routesHi, I would like to add Ratelimiter to a specific fastify trpc route, are there any solutions availaSubscriptionsare we able to send data over with subscriptions, to allow for full duplex communication ?Query tRPC the right wayIf you use graphql, you can precisely query what you exactly need and avoid over fetching, so you ca