!. install typescript, @types/react and @types/react-dom.
2. in packages.json, replace vite build with tsc && vite build.
3. configure your TS:

tsconfig.json

{
  "compilerOptions": {
    "target": "ESNext",
    "useDefineForClassFields": true,
    "lib": ["DOM", "DOM.Iterable", "ESNext"],
    "allowJs": false,
    "skipLibCheck": true,
    "esModuleInterop": false,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "ESNext",
    "moduleResolution": "Node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react-jsx"
  },
  "include": ["src"],
  "references": [{ "path": "./tsconfig.node.json" }]
}

tsconfig.node.json

{
  "compilerOptions": {
    "composite": true,
    "module": "ESNext",
    "moduleResolution": "Node",
    "allowSyntheticDefaultImports": true
  },
  "include": ["vite.config.ts"]
}

pretty easy to do. I wonder why no one made a response like this.
I only know this because I installed a new vite project then copied the config files to the typeless old project. but you don't have to (hopefully not soon)/

HAPPY CODING :)

🌐
GitHub
github.com › uchihamalolan › vite-react-ts
GitHub - uchihamalolan/vite-react-ts: Vite React-Typescript CRA Replacement Starter Template · GitHub
Vite React-Typescript CRA Replacement Starter Template - uchihamalolan/vite-react-ts
Starred by 132 users
Forked by 22 users
Languages   TypeScript 48.1% | CSS 25.0% | JavaScript 13.5% | HTML 9.7% | Shell 3.7%
🌐
GitHub
github.com › R35007 › vite-react-typescript
GitHub - R35007/vite-react-typescript: ⚛️ A simple vite react typescript starter template with husky, conventional commit, eslint, stylelint, prettier, sass, tailwindcss, material ui, tanstack routing, redux and saga, vitest and cypress
⚛️ A simple vite react typescript starter template with husky, conventional commit, eslint, stylelint, prettier, sass, tailwindcss, material ui, tanstack routing, redux and saga, vitest and cypres...
Starred by 24 users
Forked by 6 users
Languages   TypeScript 75.9% | JavaScript 18.6% | Shell 3.6% | HTML 1.3% | SCSS 0.6%
🌐
GitHub
github.com › emnnipal › react-ts-vite
GitHub - emnnipal/react-ts-vite: Template for ReactJS with Vite and TypeScript
Template for ReactJS with Vite and TypeScript. Contribute to emnnipal/react-ts-vite development by creating an account on GitHub.
Author   emnnipal
🌐
GitHub
github.com › hyochan › react-typescript-vite
GitHub - hyochan/react-typescript-vite: React boilerplate with typescript and vite · GitHub
React boilerplate with typescript and vite. Contribute to hyochan/react-typescript-vite development by creating an account on GitHub.
Author   hyochan
Find elsewhere
🌐
GitHub
github.com › topics › vite-react-typescript
vite-react-typescript · GitHub Topics · GitHub
September 29, 2022 - ⚛️ Create a new react library project with Vite, React JS, TypeScript, Eslint, Prettier in just 1 second and you don't need to setup anything. vite-react vite-react-typescript vite-react-typescript-template
🌐
GitHub
github.com › topics › vite-template-react
vite-template-react · GitHub Topics · GitHub
A modern React application built with Vite, TypeScript, Tailwind CSS, and shadcn/ui components for rapid UI development. react boilerplate typescript reactjs starter-template tailwindcss vite vite-template react-typescript-template ...
🌐
GitHub
github.com › jonluca › vite-typescript-ssr-react
GitHub - jonluca/vite-typescript-ssr-react: 🚀 A Vite Typescript SSR React boilerplate!
January 24, 2026 - 🚀 A Vite Typescript SSR React boilerplate! Contribute to jonluca/vite-typescript-ssr-react development by creating an account on GitHub.
Starred by 352 users
Forked by 51 users
Languages   TypeScript 83.5% | HTML 10.9% | JavaScript 3.9% | CSS 1.7%
🌐
GitHub
github.com › pchmn › vite-react-ts-ghactions-template
GitHub - pchmn/vite-react-ts-ghactions-template: Vite + React v18 + TypeScript + Github Actions Template
This a React 18 + TypeScript + Vitest and React Testing Library + GitHub Actions starter template built with Vite.
Starred by 46 users
Forked by 6 users
Languages   HTML 41.4% | TypeScript 28.4% | JavaScript 16.4% | CSS 12.2% | Shell 1.6% | HTML 41.4% | TypeScript 28.4% | JavaScript 16.4% | CSS 12.2% | Shell 1.6%
🌐
GitHub
github.com › Volcomix › vite-react-ts
GitHub - Volcomix/vite-react-ts: Vite React TypeScript with linters, typing and styling predefined settings
Vite React TypeScript with linters, typing and styling predefined settings - Volcomix/vite-react-ts
Author   Volcomix
🌐
GitHub
github.com › topics › vite-react-typescript-template
vite-react-typescript-template · GitHub Topics · GitHub
A minimal and lightweight starter template for React with TypeScript and SCSS using Vite. This template provides a clean setup without unnecessary boilerplate, so you can start your project quickly. vite-template vite-react-typescript-template ...
🌐
GitHub
github.com › fdaciuk › boilerplate-vite-react
GitHub - fdaciuk/boilerplate-vite-react: Create a new project with React.js, TypeScript and jest with Vite
Create a new project with React.js, TypeScript and jest with Vite - fdaciuk/boilerplate-vite-react
Starred by 104 users
Forked by 39 users
Languages   TypeScript 81.2% | CSS 8.6% | JavaScript 6.3% | HTML 3.2% | Shell 0.7% | TypeScript 81.2% | CSS 8.6% | JavaScript 6.3% | HTML 3.2% | Shell 0.7%
🌐
GitConnected
levelup.gitconnected.com › deploying-a-vite-react-typescript-app-to-github-pages-using-github-actions-jest-and-pnpm-as-a-a3461ef9c4ad
Deploying a Vite React TypeScript app to Github Pages using GitHub Actions, Jest, and pnpm— As a pro | by Jonatan Kruszewski | Level Up Coding
July 23, 2024 - // use your link from GitHub git add . git commit -m "initial commit" git push -u origin main pnpm run dev · At this point, you should already have a running application locally: ... Many articles cover setting up Jest with Vite to test React applications using TypeScript.
🌐
GitHub
github.com › vitejs › vite › tree › main › packages › create-vite › template-react-ts
vite/packages/create-vite/template-react-ts at main · vitejs/vite
// Enable lint rules for React reactX.configs['recommended-typescript'], // Enable lint rules for React DOM reactDom.configs.recommended, ], languageOptions: { parserOptions: { project: ['./tsconfig.node.json', './tsconfig.app.json'], tsconfigRootDir: import.meta.dirname, }, // other options...
Author   vitejs
🌐
GitHub
github.com › castromaciel › template-vite-react-ts
GitHub - castromaciel/template-vite-react-ts: A Vite + React + TS template
A Vite + React + TS template. Contribute to castromaciel/template-vite-react-ts development by creating an account on GitHub.
Starred by 3 users
Forked by 2 users
Languages   TypeScript 64.8% | SCSS 27.5% | HTML 5.7% | Shell 2.0% | TypeScript 64.8% | SCSS 27.5% | HTML 5.7% | Shell 2.0%
🌐
GitHub
github.com › simerlec › vite-react-ts-starter
GitHub - simerlec/vite-react-ts-starter: Vitejs starter using React & Typescript. Styling done with TailwindCSS using JIT mode. Testing done using Vitest.
A modern Vite starter template using React and TypeScript.
Starred by 27 users
Forked by 6 users
Languages   TypeScript 74.4% | CSS 12.3% | HTML 11.6% | JavaScript 1.7% | TypeScript 74.4% | CSS 12.3% | HTML 11.6% | JavaScript 1.7%
🌐
GitHub
github.com › bartstc › vite-ts-react-template
GitHub - bartstc/vite-ts-react-template: This project provides a basic dev setup intended for Single Page Application (SPA) development. It contains key tools, settings for seamless DX, and an demo app presenting good practices and used tooling in action.
An opinionated, production-ready starter for Single Page Application development with React. Pre-configured tooling, libraries, and a demo app so you can skip the boilerplate and focus on building.
Starred by 114 users
Forked by 12 users
Languages   TypeScript 89.0% | JavaScript 5.4% | Shell 4.9% | TypeScript 89.0% | JavaScript 5.4% | Shell 4.9%