zrilmanZ
tRPC3y ago
7 replies
zrilman

VS Code becomes unresponsive

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"]
    },
Was this page helpful?