From 2fac361f7c56700f467546bb2edcbf34750ea431 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Mon, 20 Oct 2025 11:19:41 -0400 Subject: [PATCH] docs: Install vite as a devDependency --- docs/start/framework/react/build-from-scratch.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/start/framework/react/build-from-scratch.md b/docs/start/framework/react/build-from-scratch.md index 06b39be4786..eb72847d386 100644 --- a/docs/start/framework/react/build-from-scratch.md +++ b/docs/start/framework/react/build-from-scratch.md @@ -52,13 +52,25 @@ TanStack Start is powered by [Vite](https://vite.dev/) and [TanStack Router](htt To install them, run: ```shell -npm i @tanstack/react-start @tanstack/react-router vite +npm i @tanstack/react-start @tanstack/react-router +``` + +We also need vite as a devDependency: + +```shell +npm i -D vite ``` You'll also need React: ```shell -npm i react react-dom @vitejs/plugin-react +npm i react react-dom +``` + +As well as React's Vite plugin: + +```shell +npm i -D @vitejs/plugin-react ``` Alternatively, you can also use `@vitejs/plugin-react-oxc` or `@vitejs/plugin-react-swc`.