T
TanStack4mo ago
adverse-sapphire

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
optimistic-gold
optimistic-gold4mo ago
ssr: true if you use start
adverse-sapphire
adverse-sapphireOP4mo ago
I forgot to say that tauri only support SPA 。 But I will try ssr true
optimistic-gold
optimistic-gold4mo ago
you will need SSR for the root route though

Did you find this page helpful?