Could not resolve "tanstack-start-router-manifest:v"
I'm just getting this error trying the
alpha.17
13 Replies
flat-fuchsia•7mo ago
yes we are aware of that bug
this happens as soon as your client imports anything from react-start/server
exotic-emeraldOP•7mo ago
Maybe is because of this? 🤔 but i'm creating first a serverfn so is weird

flat-fuchsia•7mo ago
this import should get stripped off during compilation
exotic-emeraldOP•7mo ago
Huh, that the only file where I use something from server
flat-fuchsia•7mo ago
then maybe my assumption was wrong and importing from react-start alone is the issue
exotic-emeraldOP•7mo ago
the issue is that docs says that createServerFn is from react-start 😅 so this is like a big issue if is something about documentation to properly handle these cases
exotic-emeraldOP•7mo ago
I needed to add this and it starts working on dev

flat-fuchsia•7mo ago
nice! thanks for the update I hope we can get this fixed automatically soon then
exotic-emeraldOP•7mo ago
no problem, it's only on dev, and this fix was bright to you by AI, so I'm going to ask it why it did it and how it can be resolved at library level
exotic-emeraldOP•7mo ago
Claude says that this can be a good fix to mark them as virtual 😅

exotic-emeraldOP•7mo ago
I'm seeing that this is implemented here https://github.com/TanStack/router/blob/alpha/packages/start-plugin-core/src/resolve-virtual-entries-plugin/plugin.ts but maybe the id's have a mismatch
flat-fuchsia•7mo ago
they are virtual modules
the issue is the esbuild is not aware of those modules
and with the optimizeDeps setting you disabled esbuild for those
so this might be the fix we need
need to look at it again later
rising-crimson•7mo ago
For me, I added a client.tsx to add Sentry. I'll randomly get this error in dev and have to delete the client.tsx and re-add it.