[plugin:vite:import-analysis] Failed to resolve import "tanstack-start-injected-head-scripts:v" from
How to debug this one

10 Replies
sunny-green•2mo ago
I have the same issue ..
`
But mine is on build
quickest-silver•2mo ago
what vite version are you using? and node version
sunny-green•2mo ago
"vite": "^7.1.10",
v24.4.1
quickest-silver•2mo ago
Welp I don't have anything else then. I had that once and updating my node version fixed it
multiple-amethyst•2mo ago
Getting the same error, but only when trying to use a 3rd party i18n library+plugin
absent-sapphire•2mo ago
AS I know this error happens when you are importing some server functions on client +> https://github.com/TanStack/router/issues/5196
GitHub
v1.132.2 Rollup failed to resolve import "tanstack-start-injected-h...
Which project does this relate to? Start Describe the bug Error during build on version 1.132.2. error during build: [vite]: Rollup failed to resolve import "tanstack-start-injected-head-scrip...
absent-sapphire•2mo ago
Issue to improve the error message in that case => https://github.com/TanStack/router/issues/5469
GitHub
Improve start error message when importing server code on the clien...
Which project does this relate to? Start Describe the bug When someone imports server code on the client in the current iteration of tanstack start, vite gives a very hard-to-debug error which does...
plain-purple•2mo ago
I am having the same issue on npm run build, is this a bug ?
broad-brown•2mo ago
same
relaxed-coral•2mo ago