-
-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow Typescript VSCode Intellisense #924
Comments
Can you try if something's like this works for you? juliusmarminge/acme-corp#225 |
I also have terrible vscode performance. It's crazy how deep these inferences get. |
@juliusmarminge tried implementing the changes here, but I get the following errors from @acme/api. It also doesn't really improve something. https://github.com/tabtick/tabtick/pull/16/files Do you think that this slowdown is caused by zod? Would it be an alternative to use typebox or another library for validation. |
I know it doesn't solve the issue for those who want to keep using ESlint and Prettier, but I moved to Biome.js and it's much, much more performant. There's even starter repo for it here: https://github.com/rajatsandeepsen/t3-turbo-biome |
Probably because Biome doesnt have rules that require type information. |
@juliusmarminge implementing your recommendation seems to have helped a lot. I've split the @acme/api in two packages:
I am still not sure if drizzle was the culprit, I am seeing .dts file of 3000 lines >. //Also added |
thinking about migrating. anything you are missing from ESLint+Prettier? |
Typed linting |
I just migrated today, it's a shame to lose the typed linting but I couldn't justify the performance hit any longer. The linting rules it has are great - but you do lack things like the nextjs eslint plugin and tailwind class sorting which is a shame but I think a reasonable tradeoff for the performance gains. |
I've created a repository for my own. |
Provide environment information
Describe the bug
I need some help with handling this TS issue. Some things that I am not sure about:
Problem
Typescript Intellisense is very slow in my project. The project was boostrapped from this template. It currently has 17 trpc routers with logic from drizzle, zod, stripe and firebase. I don't think the current size should justify the slow ts.
bug.t3.mp4
I know this template uses
incremental
option in thetsconfig.json
which should make sure that packages type inference are cached .cache, but it looks like when I use a trpc router it's always type-checking.create-t3-turbo/tooling/typescript/base.json
Line 17 in ae8f447
Investigation
I've also generated a trace from tsc. Seeing some stuff from
@acme/db
and@acme/auth
but I am not sure if I am looking at the right things.trace.json
Output from
npx tsc --extendedDiagnostics
for the nextjs appLink to reproduction
https://github.com/tabtick/tabtick
To reproduce
pnpm install
Additional information
No response
The text was updated successfully, but these errors were encountered: