CSS import error after upgrading Tanstack Start & Router to 1.121.0
Happend after the upgrade.
This is my vite.config.ts:
// vite.config.ts
import path from "path"
import tailwindcss from "@tailwindcss/vite"
import { tanstackStart } from "@tanstack/react-start/plugin/vite"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
import tsConfigPaths from "vite-tsconfig-paths"
const ReactCompilerConfig = { target: "19" }
export default defineConfig({
plugins: [
tsConfigPaths({
projects: ["./tsconfig.json"],
}),
tanstackStart({
react: {
babel: {
plugins: [["babel-plugin-react-compiler", ReactCompilerConfig]],
},
},
}),
tailwindcss(),
react(),
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
})
