Duolith docs

Errors while checking a page

E0161 Public file in the build's place

Message public/path is a path the build writes

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

Files in public/ are served at the same path from the site's root, beside the files the build writes: a page's index.html, the 404.html app shell, and everything under _duolith/. A public file with one of those paths would replace a built file, or be replaced by it.

How to fix it

Rename or move the file, such as public/media/logo.svg, or remove it.

In a terminal

duolith explain E0161

Mentioned in