Duolith docs

Errors E0300 to E0399

E0353 Link to a page that does not exist

Message no page serves path

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

Why

A link written as text (href="/settings" or href={"/settings"}; navigate("/settings") or navigate(/settings), under any name it is imported as; a redirect a guard returns; or signIn.required("/sign-in")) names a path from the site root that no file in pages/ serves and no file in public/ has. Pressing it would show the not-found screen. Duolith checks every such path against the project's routes when it builds (decision 0099); a path built from data is checked only when it is followed.

How to fix it

Link to a route a page serves: pages/settings.duo serves /settings, and pages/post/[id].duo serves /post/7. Or add the page the link names.

In a terminal

duolith explain E0353

Mentioned in