T
TanStack17mo ago
fascinating-indigo

routeTree gen in JS

Hi all - for some reason i want to use router on JS project. But how to make the routeTree.gen generate a JS file instead of TS?
2 Replies
other-emerald
other-emerald17mo ago
You can use the disableTypes option and have it output it into a .js file. https://tanstack.com/router/latest/docs/framework/react/guide/file-based-routing#options
File-Based Routes | TanStack Router React Docs
Most of the TanStack Router documentation is written for file-based routing. This guide is mostly intended to help you understand in more detail how to configure file-based routing and the technical details behind how it works. Prerequisites
fascinating-indigo
fascinating-indigoOP17mo ago
thanks!!

Did you find this page helpful?