VSCode Intellisense very slow after upgrading TanStack Start?
Hello,
I'm working in a monorepo (using
pnpm
& Turborepo) in which I have two applications using TanStack Start (and a few other applications that don't).
I was previously using the TanStack Router & Start versions 1.98.4
, but decided to upgrade to the latest 1.117.0
.
Upon upgrading, my VSCode Intellisense is very slow in both applications, but not in any of the other applications or packages in the monorepo.
Both applications extend from this base tsconfig.json
packages/tsconfig/tanstack.json
and then have tsconfig.json
that are structured as
1 Reply
stormy-goldOP•5mo ago
both applications
package.json
have this structure (excluded irrelevant packages for brevity)
I can definitively say that VSCode Intellisense works fast & as expected on the previous TanStack Start/Router package versions (1.98.4
) and all other packages/applications have Intellisense working as expected. It is just the two applications that use TanStack Start/Router that result in a slow Intellisense.
What I've tried so far:
1. Being more explicit with the files/directories in the include
and exclude
entries in all my tsconfig.json
files in the monorepo
2. Bumping up the VSCode TypeScript server memory to 8192
.
3. Explicitly ignoring node_modules
, dist
, etc. within VSCode settings
4. Restarting my computer
Any help would be appreciated, thanks in advance!
also for what it's worth, i ran npx tsc --extendedDiagnostics
within one of the TanStack Start apps
on my main
branch on v1.98.4
and then again on my upgrade branch on v1.117.0
, where all I did was upgrade the TanStack Router/Start packages
so it seems like "Symbols", "Types", and "Instantations" all 2x+'d, which made the check time just about 3x
wow I'm so upset -- turns out the solution was to delete pnpm-lock.yaml
in the monorepo root and then pnpm i
to reinstall it.
I already had a script that deleted & replaced all node_modules
, deleted all build
/dist
/output
directories and metadata .vinxi
/.turbo
directories.
hopefully this helps someone else in the future.