From bc626a5960c4ce321553d8f8bdae3ba041dd35d0 Mon Sep 17 00:00:00 2001 From: Julian Cuni Date: Sun, 3 May 2026 09:28:00 +0200 Subject: [PATCH] fix: Deprecated TanStackRouterVite, correct import and usage of tanstackRouter in vite.config.ts --- vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 0083381..badcea1 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,7 +2,7 @@ import path from 'node:path'; import { defineConfig, loadEnv } from 'vite'; import react from '@vitejs/plugin-react'; import tailwindcss from '@tailwindcss/vite'; -import { TanStackRouterVite } from '@tanstack/router-plugin/vite'; +import { tanstackRouter } from '@tanstack/router-plugin/vite'; // https://vite.dev/config/ export default defineConfig(({ mode }) => { @@ -16,7 +16,7 @@ export default defineConfig(({ mode }) => { plugins: [ // Router plugin must run BEFORE @vitejs/plugin-react so the generated // routeTree is in place when React's transform runs. - TanStackRouterVite({ target: 'react', autoCodeSplitting: true }), + tanstackRouter({ target: 'react', autoCodeSplitting: true }), react(), tailwindcss(), ],