A single-package React app moves to TypeScript 7 in seven ordered steps: clear TS 6 deprecations, install the new compiler, fix your tsconfig, re-wire Vite type-checking, line up ESLint, patch your test types, then confirm a clean tsc --noEmit and a green CI run. Nothing about your JSX, hooks, or generics needs to change. Do the pre-flight properly and this barely touches your source at all.
The TypeScript 7 React migration leaves your components alone
People expect a rewrite of their source and budget for one. They don't need to. TS 7 (codename Project Corsa, GA on July 8, 2026) is a native Go rewrite of the compiler, not a new type system. For the reasoning behind the rewrite, read the Project Corsa guide. Everything that mattered in TS 5 and 6 behaves identically: conditional types, mapped types, strict inference, all of it. Your React hooks best practices stay exactly the same. React, Next.js, and plain Node work with TS 7 today; Vue, Svelte, and Astro template checking don't yet, because they need a stable programmatic compiler API that isn't ready. A Vite React app is plain TSX, so you're in the supported lane. Work the list in order.
Step 1: Clear the TS 6 deprecations
Clear every deprecation TypeScript 6 reports before you install 7, because 6 is the last JavaScript-based release and it fails with TS5107 on exactly the options that 7 removes outright. The difference is that 6 lets you defer them with "ignoreDeprecations": "6.0" while you fix them; 7 has no such switch. Install it, run the checker, and fix everything it names. For the full cross-version path from TS 5.x, see the TypeScript 7 migration guide.
Doing this as a separate, committed step is what makes the rest of the checklist boring. If you skip straight to 7, every deprecation arrives as a build failure with no gradual path, mixed in with genuine incompatibilities from Vite, ESLint, and Vitest all at once. You end up bisecting four toolchains instead of reading one list of deprecation errors.
The deprecations that matter most in a Vite React app are moduleResolution: "node10", an ES5 target, and any AMD, UMD, or SystemJS module output left over from a much older config. All three are removed in 7 rather than deprecated.
npm install -D typescript@6
npx tsc --noEmit
- Run
npx tsc --noEmiton TS 6 and read everyTS5107error - Remove
moduleResolution: "node10", ES5 targets, and any AMD/UMD/SystemJS output - Fix or delete each deprecated flag it names
- Commit a clean TS 6 baseline, with no
ignoreDeprecationsleft, before touching anything else - Or skip the manual read-through: paste your tsconfig into the TypeScript 7 Migration Readiness Checker for a scored list of exactly what's blocking you
Step 2: Bump typescript to 7
Bumping to TypeScript 7 is one install command once the baseline is clean. There's no separate tsgo binary at GA and no preview package to add: the native Go compiler ships as the ordinary tsc under the latest tag, so a plain install gets you the fast checker.
That naming decision is worth knowing about because most of the material written during the preview says otherwise. Guides from 2025 tell you to install @typescript/native-preview and invoke tsgo. Follow them now and you get a stale preview build sitting alongside the real thing, with your editor and your CI potentially resolving different compilers.
One version check while you're here. On 20 November 2026 the npm latest tag is 7.0.2, and a beta tag points at 7.1.0-beta, with no 7.1 release candidate yet. The announcement says an RC follows about a month after the beta. I'd keep a production React app on latest: the beta's headline additions are an es2026 target, a new API and content mappers for Vue, Svelte and Astro files, and none of them is something this checklist needs.
If the old preview package is anywhere in package.json, remove it in the same commit and reinstall so the lockfile pins one version of one compiler.
npm install -D typescript
npx tsc --version # Version 7.0.x
- Confirm
tsc --versionprints 7.0.x - Stay on the
latesttag, notbeta - Drop any old
@typescript/native-previewdependency from package.json - Reinstall so the lockfile pins the new version
Step 3: moduleResolution has to be bundler
Set moduleResolution to bundler because a Vite app resolves imports through the bundler rather than Node's runtime rules. Classic resolution and node10 are gone in TS 7, so an outdated value here is a build error with no ignoreDeprecations opt-out. Here's a tsconfig that works for a single-package React app.
{
"compilerOptions": {
"target": "ES2022",
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"module": "ESNext",
"moduleResolution": "bundler",
"jsx": "react-jsx",
"strict": true,
"noEmit": true,
"skipLibCheck": true,
"isolatedModules": true,
"verbatimModuleSyntax": true,
"types": ["vite/client", "vitest/globals"]
},
"include": ["src", "vite.config.ts"]
}
- Set
moduleResolutionto bundler andmoduleto ESNext - Bump
targetto ES2022 or newer; ES5 output no longer exists - Keep
noEmit: true, since Vite handles the actual build - Diff your tsconfig against a fresh
react-tsVite scaffold and explain every difference
Two entries in that config do more work than their size suggests. verbatimModuleSyntax makes TypeScript emit imports exactly as written, which matters because the bundler strips types per file (Oxc in Vite 8, esbuild earlier) and cannot tell a type-only import from a value import on its own. Without it you get runtime imports of modules that only ever held types.
isolatedModules enforces the same single-file constraint at type-check time, so the compiler rejects the patterns a per-file transformer would silently mangle. Both should already be on in a Vite project; TS 7 is a good moment to confirm rather than assume.
Want a known-good reference instead of editing blind? Scaffold one. On 20 November 2026 I scaffolded the react-ts template with npm create vite@latest (create-vite 9.3.4, which installed Vite 8.3.8) and read what it wrote. Its package.json pins "typescript": "~7.0.2", and none of its three tsconfig files has a strict key. That isn't a gap, because TS 7 turns strict on by default: I added const x: number = null; to the scaffold and tsc answered with TS2322, and tsc -b passed on the untouched template. The template also lints with oxlint rather than ESLint, so Step 5 only applies if you added typescript-eslint yourself. Don't paste its config over yours; diff the two and keep only the differences you can explain.
Step 4: Vite type-checking on the new compiler
Vite only strips types (Oxc in Vite 8, esbuild before that) and never called the old compiler API, so bundling just works. Type-checking is separate. Most teams run it through vite-plugin-checker in dev and a tsc step in CI. The one thing I'd double-check: does your checker plugin version list TS 7 support? An older plugin can still bind to the removed compiler API and fail on startup. Which would you rather find, a stale plugin now or a red pipeline at 5pm?
- Update vite-plugin-checker to a release that names TS 7 in its changelog
- Or drop the plugin and rely on a standalone
tsc --noEmitgate - Run
vite devonce and confirm type errors still surface in the overlay
Dropping the plugin is a more reasonable option than it used to be. The whole argument for in-editor overlay checking was that a full tsc run took long enough to break flow. On the Go compiler a typical single-app check drops by several times (see the benchmark numbers in Step 7), which is often fast enough to run on save from a watch task without a Vite plugin in the middle.
Whichever route you pick, keep exactly one of them. Running the plugin and a separate tsc gate against different tsconfig files is how you end up with a dev overlay that is green while CI is red.
Step 5: What breaks in typescript-eslint and ESLint?
Typed lint rules are what breaks, because typescript-eslint reads the old JavaScript compiler's program object and TypeScript 7 doesn't ship one. There's no TypeScript 7 release of the package to bump to yet: 8.73.0 declares a peer range of >=4.8.4 <6.1.0, so a plain install fails with ERESOLVE, and forcing it past that check makes the linter exit at startup. The workable setup keeps the TypeScript 6 API under the typescript name and adds the native compiler beside it. The full reproduction is in typescript-eslint and TypeScript 7.
The failure mode here is quiet, which is why it's worth an explicit check. Untyped rules keep working, so eslint exits zero and the pipeline stays green while every type-aware rule silently stops firing. Nothing tells you that no-floating-promises and no-misused-promises have gone dark.
Verify by writing a deliberate violation: an async call with no await and no .catch(). If the linter doesn't flag it, your typed rules aren't resolving and the green checkmark is meaningless.
{
"devDependencies": {
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"typescript-eslint": "8.73.0",
"eslint": "^9"
}
}
npm install
npx eslint "src/**/*.{ts,tsx}"
- Alias the TypeScript 6 API as
typescriptand add@typescript/nativefor the compiler - Check each build dependency against the TypeScript 7 compatibility registry before you pin it
- Verify typed rules like
no-floating-promisesstill fire - Pin ESLint and the parser in package.json so CI matches local
Step 6: Vitest and Testing Library types
Wire the test type globals into the types array or you'll get a wall of "cannot find name expect" errors. Add the Vitest and Testing Library entries to your tsconfig, and keep jsdom set in the Vite config. If a test imports a helper written for a removed module format like AMD, this is where it surfaces, and it may be the only real source change in the whole job.
That is the whole migration in miniature: seven steps of configuration and, in a typical app, single-digit lines of actual code. The type system did not change between 6 and 7, so components that type-checked before type-check after.
Test files are the usual exception because they accumulate the oldest patterns in a codebase. A helper imported with a legacy module syntax, a require in a setup file, a // @ts-nocheck someone added during a deadline. Those surface here rather than in src.
- Add
vitest/globalsand@testing-library/jest-domto thetypesarray - Run
npx vitest runand confirm the suite type-checks and passes - Delete any lingering
// @ts-nocheckyou added during the scramble
That last box matters more than it looks. A @ts-nocheck added at 6pm to unblock a build is invisible to the compiler by design, so it survives every subsequent green run.
Step 7: Verify with tsc --noEmit and a green CI run
Verification is one clean tsc --noEmit plus one green pipeline, and the fact that it's boring is the point. Run the type-check locally, push, and confirm CI agrees with your machine on the same compiler version.
npx tsc --noEmit
npx vitest run
- Get a zero-error
tsc --noEmitlocally - Push and watch CI go green end to end
- Tag the commit so you can roll back if a niche dependency lags
Pin the exact compiler version in package.json rather than leaving a caret range. CI resolving 7.0.4 while you run 7.0.2 is how a type error appears in the pipeline and refuses to reproduce locally.
How much faster depends on the repo. The tsgo benchmarks on this site measured 4.4x to 5.8x on three workspaces of the monorepo behind it, and the generated 1000-module project in its harness checked in 1261 ms on 6.0.3 against 169 ms on 7.0.2 on an Apple M1. A check that quick runs on save instead of on push.
The speed alone justifies doing this the week your test suite is green, not someday.
The 7 steps at a glance
| Step | Action | Source change needed |
|---|---|---|
| 1 | Clear every TS 6 deprecation | None, config only |
| 2 | Bump typescript to 7 | None |
| 3 | Point moduleResolution at bundler | tsconfig only |
| 4 | Wire Vite type-checking to the new compiler | Plugin version bump |
| 5 | Line up typescript-eslint and ESLint | Two-alias dependency setup |
| 6 | Fix Vitest and Testing Library types | tsconfig types array |
| 7 | Verify tsc --noEmit and green CI | None |
Read down the right-hand column and the shape of the job is obvious: six of the seven steps touch configuration or dependency versions, and none of them touch a component. That's what makes this a checklist rather than a migration guide, and it's why the work parallelises badly but finishes quickly. One person with the repo open beats three people splitting steps, because steps 3 through 6 all edit the same tsconfig and the merge conflicts cost more than the parallelism saves. How long it takes depends mostly on how many deprecations step 1 turns up.
If you only have an hour, do them in this order and stop wherever you run out:
- Steps 1 and 2, which get you onto the new compiler with a known-clean baseline.
- Step 3, because a wrong
moduleResolutionfails the build outright rather than degrading. - Step 5, since silently-dead lint rules are the failure you won't notice on your own.
- Steps 4, 6, and 7, which are recoverable at any point and safe to finish tomorrow.
Three terms come up throughout and get conflated in most upgrade threads:
- Type stripping is what Vite's transformer does (Oxc in Vite 8, esbuild earlier): it deletes type annotations per file without checking them, which is why bundling keeps working even when types are broken.
- Type checking is the separate
tsc --noEmitpass that actually validates those types. Vite never did this for you. - Typed lint rules are ESLint rules that need a compiler program to answer questions like "is this a promise". They are the only part of the toolchain that breaks quietly.
Nothing here is specific to one project. The same seven steps apply to any Vite React app, from a single-page dashboard to a marketing site with a handful of islands.
Working across more than one React package? The project-references setup in the monorepo migration guide builds directly on step 3 above. And once tsc --noEmit is green locally, wire the same gate into pull requests, covered below.
Related Guides
- TypeScript strict mode guide - enable strict during the TS 6 pre-flight so the native compiler has less to surprise you with.
- TypeScript 7 framework support - React already works today; here's the status of Vue, Svelte, and Astro if your repo mixes frameworks.
- TypeScript 7 in CI: GitHub Actions - wire the finished checklist into a pull-request gate.
- React 19 new features guide - the React side of the same upgrade season, measured on 19.3.1.
- React Hook Form vs Formik - form libraries are where generic-heavy types show up first, so check them against the new compiler.
Check Your Own tsconfig.json
Paste it below for an instant readiness score against everything TypeScript 7 removed or changed. Runs in your browser, nothing is uploaded.
Need to check package.json too, or want the full breakdown? Use the full TypeScript 7 Migration Readiness Checker.