Skip to content

ogygia error

image_watch_rebuild

‹url›: a page prerendered by a `vite build --watch` rebuild names an image file the build has not made.

On SvelteKit 3, a watch rebuild prerenders the pages and runs the adapter straight from Kit's watcher, after every plugin hook, so the image plugin cannot make a prerendered page's files between the two, as a full build does. A rebuild's pages name only files a build has already made: those the last build made (a remote image, and a share card that shows one, as the last build fetched it) and those the modules warm. This page names one that none made (a new image, a new remote URL or share card, or new options on one), so the rebuild stops rather than write a page with a missing image. Stop the watch and run vite build again, or give a local image a warm preset (import.meta.og.image('./x.jpg', { warm: 'thumb' })).

Every error and warning