solid-router have some problem i think it's on cli
when i start the server it import react-router instead of solid-router for all routes
import { createFileRoute } from '@tanstack/react-router'// even if i remove thisit import it automatically why is that
import { createFileRoute } from '@tanstack/solid-router'
export const Route = createFileRoute('/')({
component: Home,
})
function Home() {
return (
<div class="p-2">
<h3>Welcome Home!!!</h3>
</div>
)
}
3 Replies
extended-salmon•2mo ago
please check the docs
extended-salmon•2mo ago
Installation with Vite | TanStack Router Solid Docs
To use file-based routing with Vite, you'll need to install the @tanstack/router-plugin package. sh npm install -D @tanstack/router-plugin Once installed, you'll need to add the plugin to your Vite co...
extended-salmon•2mo ago