Duolith docs

Errors while checking a page

E0146 Unknown route parameter

Message route has no parameter name

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

Why

let { id } = route() unpacks the values the page's route gives: the parameters its file name declares, such as id for pages/post/[id].duo, plus path and query.

How to fix it

Use a parameter the route declares, or rename the file to declare it.

In a terminal

duolith explain E0146

Mentioned in