Skip to content

a-maas/ts-router-ex

Repository files navigation

TanStack Router Example Project with Vite Root Bug

This is a minimal example project that demonstrates a potential bug with the TanStack Router Vite Plugin when using a non-standard vite root configuration. In this example, the vite root config is set to app in the vite.config.ts file. With this configuration, TanStack Router does not detect tsr.config.json in the project root, but will detect it if the file is moved to the app directory. Once moved to the app directory, the TanStack Router Vite plugin will successfully generate the routes on vite dev boot, but will not detect and re-generate based on adding and removing files in the app/routes directory.

Steps to Reproduce

  1. Clone this repository
  2. Run npm install
  3. Run npm run dev
  4. Observe that the routes are generated on boot.
  5. Add a test.tsx file to the app/routes directory.
  6. Observe that the routes are not re-generated.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published