Cannot find module '@tanstack/router-plugin/vite' or its corresponding type declarations.
I'm getting this
tsc
error in my vite.config.ts
file. Routing itself works fine, but the error is annoying and I'm wondering if I've missed a step somewhere.
My package.json
has:
Is there perhaps something that needs to go in tsconfig
?3 Replies
cloudy-cyan•15mo ago
I had set my moduleResolution to "bundler" which fixed it for me.
https://github.com/SeanCassiere/nv-rental-clone/commit/7e27b35bdb51e7fa228d2b1eb855ef8664e80bb2
GitHub
refactor: switch over to
@tanstack/router-plugin/vite
(#371) · Se...* chore: upgrade
* chore: bump tanstack router plugin
wise-whiteOP•15mo ago
Exactly what I needed! thank you ❤️
absent-sapphire•3mo ago
This exact thing happened to me and my moduleResolution was set to bundler. After wasting two days I changed it to node and it worked fine, it generated the tree autogen file and created a .tanstack temp folder. So i went back and changed it back to "bundler" and removed those files and it works fine still. But i still have the same issue if i start from beginning.
It is technically resolved but I don't know how or what the issue was/is. Also, i am using react, no next or anything, so the tsconfig.app.json and tsconfig.node.json both are using bundler
and it is super annoying because i do not want my resolver to be node, it has to be bundler, im using vite