It just happens on the login screen of our app. It SSR renders but doesn't load any additional JS so anything interactive doesn't work.
Versions:
"@tanstack/react-router": "1.157.2",
"@tanstack/react-router-devtools": "1.157.2",
"@tanstack/react-router-ssr-query": "1.157.2",
"@tanstack/react-start": "1.157.2",
"nitro": "npm:nitro-nightly@latest",
We use a basepath of /new.
Vite Config:
import { tanstackStart } from "@tanstack/react-start/plugin/vite"
import react from "@vitejs/plugin-react"
import { nitro } from "nitro/vite"
import { dirname, resolve } from "node:path"
import { fileURLToPath } from "node:url"
import { defineConfig } from "vite"
import viteTsConfigPaths from "vite-tsconfig-paths"
const __dirname = dirname(fileURLToPath(import.meta.url))
export default defineConfig({
server: {
port: 3000,
},
plugins: [
nitro(),
viteTsConfigPaths({
projects: ["./tsconfig.json"],
}),
tanstackStart({
router: {
quoteStyle: "double",
semicolons: false,
disableLogging: false,
basepath: "/new",
},
}),
react(),
],
css: {
postcss: "./postcss.config.cjs",
},
build: {
sourcemap: true,
},
})
Clicking on the "login:1" in the console shows me "No resource with given identifier found" (screenshot 2). But sometimes that also just shows the correct HTML instead. Depending a bit on which Vite COnfig settigns I have