TanStackT
TanStack10mo ago
2 replies
brilliant-lime

Vite warning node:fs when using StartClient component

Vite gives me warnings like:

[plugin vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/Users/jasonkuhrt/CascadeProjects/vite-webapp/node_modules/.pnpm/@tanstack+start-client-core@1.114.25/node_modules/@tanstack/start-client-core/dist/esm/createServerFn.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.


When I import import { StartClient } from '@tanstack/react-start' following docs at https://tanstack.com/router/latest/docs/framework/react/guide/ssr#rendering-the-application-on-the-client .

Any tips on what to do here?
Server Side Rendering (SSR) is the process of rendering a component on the server and sending the HTML markup to the client. The client then hydrates the markup into a fully interactive component. The...
SSR | TanStack Router React Docs
Was this page helpful?