ERR_MODULE_NOT_FOUND after 1.36 --> 1.39 upgrade
Hi, When truing to build (
vite build --mode production)and deploy the application I now receive this:
Sure enough, server.js does not exist.
In my src directory I have kept the server.ts, client.ts and start.tsx. If I remove them, I still have the error. (start.tsx is required as it has my clerk middleware)
If I run: vite dev this still works.
I checked the change log and I didn't see anything that might cause this. Maybe I missed something. Are there any known issues or changes which might cause this?
many thanks
JT2 Replies
extended-yellowOP•3d ago
This is the viteconfig. The error is in the pre-render but I need this for the SSR. (right?). If I remove it, the error stops but there is no SSR even with
ssr: true set on the file routes. The tanstackStart.prerender config is quite close to the example on this page: https://tanstack.com/start/latest/docs/framework/react/guide/static-prerenderingStatic Prerendering | TanStack Start React Docs
Static prerendering is the process of generating static HTML files for your application. This can be useful for either improving the performance of your application, as it allows you to serve pre-rend...
extended-yellowOP•3d ago
GitHub
Tanstack Start prerender error · Issue #5939 · TanStack/router
Which project does this relate to? Start Describe the bug repo: https://github.com/hehehai/tiny-svg site: https://tiny-svg.actnow.dev/ locale dev: success locale build: error message (prerender) vi...