#Typescript error with Vite + file based routing

15 messages · Page 1 of 1 (latest)

fleet notch
#

I upgraded all my router dependencies but receive typing errors.

#

I use the router with file based routing and Vite plugin. I don't find any changelog what might could cause this.

echo oak
#

Make sure you are importing from @tanstack/react-router and not @tanstack/react-router/dist/...

fleet notch
#

this is the entire file.. I guess its some tsconfig setting of Typescript? But I can't really tell, I am using the latest version 5.5.4

echo oak
#

If you can recreate this, I can probably debug this.

fleet notch
#

Im not sure how to isolate this.. is there template starter for typescript + vite + file based routing?

echo oak
fleet notch
#

thx.. i try to isolate it but no luck so far

#

now i did.. so it has something to do with my typescript

#

i removed tsconfig.dev.json

#

and ported all my tsconfig.json into the stackblitz, then immideately i see the error

#

Is there a tsconfig section out there to see what are the minimum requirements to run the project ?

#

all of the examples extending a tsconfig.base.json which I dont think is actually part of the repo