template_not_prepared
What happened
A template reached the runtime that the build's prepare pass never saw, in a bundle built without the scanner.
What to do
Build every module that uses html through @zerolith/vite, or pass prepare: false to the plugin to keep the scanner in the bundle.
The arguments of the specific occurrence are in the query string of the URL the error gave you.