TanStackT
TanStack8mo ago
13 replies
urgent-maroon

createFileRoute removed on save

Trying to migrate from Next.js, running the alpha. Running into two issues with file based routing:

1. No createFileRoute being inserted in existing files
2. With new files, createFileRoute is added, but when saving the createFileRoute import is removed

    "@tanstack/react-router": "1.121.0-alpha.14",
    "@tanstack/react-start": "1.121.0-alpha.21",


Vite config
import tailwindcss from "@tailwindcss/vite"
import { tanstackStart } from "@tanstack/react-start/plugin/vite"
import { defineConfig } from "vite"
import tsconfigPaths from "vite-tsconfig-paths"

export default defineConfig({
  server: {
    port: 3000,
  },
  plugins: [tailwindcss(), tsconfigPaths(), tanstackStart()],
})
Was this page helpful?