Client renders in dev mode, but not once built
Hi I'm new to solid and I'm making a simple app with solid start. When I use
npm run dev
it works fine and I can build and debug as expected. When I use npm run build
then npm run start
, the client does not render my index.tsx
page, but the server does indeed work as expected. I am not using any ssr in my vite plugin config.
Not sure what's going on as most of it is as generated by the solid start template, and seems to match the docs. I'm assuming it's not an issue with the file structure as it works fine in dev mode, and remains unchanged from the template.
package.json
important parts
vite.config.ts
entry-client.tsx
I do get the console log in my browser as expected. I do not get a console log for the first line of my index.tsx's default export function component.
File structure
I'm aware solid start is a WIP so I'm not sure if it's a problem with the framework, or I'm doing something horribly wrong with solid start.
Any help greatly appreciated!0 Replies