-
-
Notifications
You must be signed in to change notification settings - Fork 412
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
vue-tsc very slow since typescript version 4.9 #2533
Comments
This may be a performance regression of TS. Unfortunately, we cannot investigate it without a repro case. It would be helpful if you can try to extract the business code and provide a repro case. |
I also noticed significant slowdown, especially when a lot of .vue files with <script setup lang="ts"> are present |
Same here, sorry I can't share a reproduction. But it's very slow vscode |
I checked out some larger open source vue projects to see if any of them has this problem but they didn't. So my first guess is that maybe my hastily assembled monorepo plays a part in this (but I could also be completely wrong on this one). I have multiple Typescript projects (multiple tsconfig.json) that carelessly cross reference themselves like the following. I didn't check if that could have some linting time implications. // project A
import type { B } from '../../../projectB/foo';
// project B
import type { A } from '../../../projectA/bar'; I'll try to dig further into it when I have some spare time. |
I'm also facing the super slow performance (in vscode) after this commit where I separated tsconfig and extended them: jd-solanki/anu@e4523d2 Does anyone know any clue? It makes it super hard to contribute. Edit: I noticed other people are also facing the similar issues where saving time is too long: #2740 (comment) If you want good production, can above mentioned pattern be the source of inspection? |
I don't know if this is related to this problem, but in my case the option Without this option, the command |
This was it for us!! Thank you. Without that option we're back to reasonable type checking speed |
Okay so I finally found a way to trace down where my slow
|
Good day everyone,
ever since I updated my typescript version from 4.8 to 4.9, my linting times of
vue-tsc
take significantly longer (about 5 times longer). Updating to typescript 5.0 didn't help either. Before it took a little less than 3 minutes but now they take 15 minutes.I wanted to know if this is a known problem or if anyone else experiences the same issue?
Sadly I cannot share my company's codebase to give a reproducible example, but if there are other ways to track down the underlying issue I'll gladly offer my help.
The text was updated successfully, but these errors were encountered: