Results 343 comments of Tee Ming

Hi kamalkech, This might be due to your `build` being built with `nodejs18` instead of `nodejs16`, which is the latest version Vercel supports. You can verify this by inspecting your...

Hi Stephen, What does the `ssr` `noExternal` config do in `vite.config.js`? [Link here](https://github.com/StephenGunn/layoutprerender/blob/4040b1692af8f7eae4bc5b6c1ccc8718f0b1af28/vite.config.ts#L6-L10). Could this be the cause of the problem? (I've no idea, but just curious as I was...

It seems to work fine with `prerender = 'auto'` but that doesn't really explain the problem. Also, this is the error message when going to the layout prerendered page directly:...

After some additional testing: 1. The prerendered pages are missing from the output after build, hence the error. (check `/.svelte-kit/output/prerendered/`) 2. Using the prerender option in `+page.ts` and `+layout.ts` instead...

> Here is the catch, I need to keep some of the sub routes dynamic. So, the Contribution Gallery, Process Videos, and ExtrasGallery pages are all dynamic because they allow...

> @s3812497 thanks. I will try this. > > Question- I have not used the svelte.config.js prerender option before, will this affect the pages that I already have prerender =...

> So, > > ``` > prerender: { > default: true > }, > ``` > > has been removed, according to the error I got during build, but is...

> ``` > file:///home/stephen/Projects/craftroulette/node_modules/.pnpm/@[email protected]_qevq5tvhizyxp44gfhkn6m3ljq/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:50 > throw new Error(format_error(details, config)); > ^ > Error: 404 /episodes/episode-[number=integer] > at file:///home/stephen/Projects/craftroulette/node_modules/.pnpm/@[email protected]_qevq5tvhizyxp44gfhkn6m3ljq/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:50:11 > at save (file:///home/stephen/Projects/craftroulette/node_modules/.pnpm/@[email protected]_qevq5tvhizyxp44gfhkn6m3ljq/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:355:4) > at visit (file:///home/stephen/Projects/craftroulette/node_modules/.pnpm/@[email protected]_qevq5tvhizyxp44gfhkn6m3ljq/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:232:3) > ``` It's weird...

> Just as a follow up- my site was acting weird before I realized that putting prerender = true in the +layout.server.ts prevented my UI from having logged in /...

> What's happening to me is any page that has a /+page.server.ts that is set to prerender is overwriting the $page.data store completely when I navigate to it. I don't...