Internal server error: Failed to resolve import "tanstack-start-injected-head-scripts:v"
When upgrading my tanstack start deps I get the above error. I'm trying to use tanstack start with cloudflare
8 Replies
quickest-silverOP•2mo ago
here is the full stack trace
quickest-silverOP•2mo ago
here is my package.json
and here is my vite config
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import { defineConfig } from 'vite'
import tsConfigPaths from 'vite-tsconfig-paths'
import viteReact from '@vitejs/plugin-react'
import { cloudflare } from "@cloudflare/vite-plugin";
export default defineConfig({
server: {
port: 3000,
},
clearScreen: false,
plugins: [
tsConfigPaths({
projects: ['./tsconfig.json'],
}),
cloudflare({
viteEnvironment: { name: 'ssr' },
persistState: { path: "../.wrangler/state" }
}),
tanstackStart(),
viteReact(),
],
})
genetic-orange•2mo ago
can you share a complete project?
fair-rose•2mo ago
same error
#[plugin:vite:import-analysis] Failed to resolve import "tanstack-start-injected-head-scripts:v" from
absent-sapphire•2mo ago
Im here with same error too
Bro I can even have a call with you about it ...
tried both nitros.. tried to exclude it, but it gets worse
It's super frustrated - no idea what could cause that...
even new, fresh project - breaks on build
@Manuel Schiller any chance to help with it? I’m stuck, switched from nextjs, but now thinking about switching it back
genetic-orange•2mo ago
@fstodulski are you using type param in handler? like
.handler<TYPE>(...)genetic-orange•2mo ago
please provide a complete reproducer
absent-sapphire•2mo ago
No. Most od my serverfuntions are calls to orpc call()