T
TanStack5mo ago
generous-apricot

Automatic Route Tree Generation in ESBuild

Hi guys, beginner to TanStack Router here. I have an app being built with ESBuild and I wanted to setup file-based routing. However, I had troubles getting the automated routeTree generation to work. I tried to follow the steps in CONTRIBUTING.md but I had immediate build failures for the following.
- nx run @tanstack/router-generator:build
- nx run @tanstack/solid-start-plugin:build
- nx run @tanstack/directive-functions-plugin:build
- nx run @tanstack/react-start-plugin:build
- nx run @tanstack/solid-router:build
- nx run @tanstack/router-generator:build
- nx run @tanstack/solid-start-plugin:build
- nx run @tanstack/directive-functions-plugin:build
- nx run @tanstack/react-start-plugin:build
- nx run @tanstack/solid-router:build
When experimenting with quickstart-esbuild-file-based, I found that routeTree.gen.ts was not being automatically updated when files were being added/changed within src/routes, despite running npm run dev. I'm assuming the router generator was not built, hence resulting in the lack of route generation. However, when trying to use TanStackRouterEsbuild in my project, it resulted in the same behaviour. Is this an expected behaviour witih bundling with ESBuild, or did I miss a configuration step? Thanks in advance.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?