T
TanStack4w ago
optimistic-gold

Tanstack Start using solid and Tauri

Tauri only support spa mode. My vite plugin,
plugins: [
tsConfigPaths(),
tanstackStart({ customViteSolidPlugin: true, spa: { enabled: true } }),
viteSolid({ ssr: false }),
],
plugins: [
tsConfigPaths(),
tanstackStart({ customViteSolidPlugin: true, spa: { enabled: true } }),
viteSolid({ ssr: false }),
],
I get error
An error occured while server rendering /:

Client-only API called on the server side. Run client-only code in onMount, or conditionally run client-only component with <Show>.
An error occured while server rendering /:

Client-only API called on the server side. Run client-only code in onMount, or conditionally run client-only component with <Show>.
3 Replies
other-emerald
other-emerald4w ago
ssr: true if you use start
optimistic-gold
optimistic-goldOP4w ago
I forgot to say that tauri only support SPA 。 But I will try ssr true
other-emerald
other-emerald4w ago
you will need SSR for the root route though

Did you find this page helpful?