Tanstack start error during deployment

im getting a TypeError: Cannot read properties of undefined (reading 'compatibilityFlags') error when deploying to CF with start when i enable SPA mode with these settings:
// vite.config.ts
export default defineConfig({
plugins: [
...
cloudflare({ viteEnvironment: { name: 'ssr' } }),
tanstackStart({
spa: {
enabled: true,
},
}),
],
})
// vite.config.ts
export default defineConfig({
plugins: [
...
cloudflare({ viteEnvironment: { name: 'ssr' } }),
tanstackStart({
spa: {
enabled: true,
},
}),
],
})
reverting the commit makes it work again any ideas why this happens? Also noticed that ssr is set to true under the CF plugin as based on the deployement guide Could this be the reason? Any way to deploy start to CF with ssr set to false?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?