TanStackT
TanStack3mo ago
5 replies
managerial-maroon

Built TanStack Start (Solid) project from create-tsrouter-app not serving client code/assets

Hello! I've set up a new project using create-tsrouter-app with the Solid framework, but after a successful build, the production server doesn't seem to be serving the client-side code (JS/CSS). The page loads without styles or interactive elements.

My Setup and Steps:

Creation Command: npx create-tsrouter-app@latest --framework solid

CLI Options Chosen:

Router: TanStack Router (File-based)

State Management: TanStack Store

Environment Variables: Te3Env

UI Library: Solid UI

Form Library: TanStack Form

Build Command: npm run build (completes successfully)

Start Command: "start": "pnpx srvx --prod -s ../client dist/server/server.js",


The Problem:
After running npm run start and opening the page in a browser, the static HTML from the server loads, but all the associated JavaScript and CSS files return 404 Not Found errors in the network tab. The page is non-interactive and unstyled.

even the example didn't work after sucessful build
Was this page helpful?