E101
Error
Syntax and structure
E101 — A component nothing declares
An element, a layout: or a part names a component that no component declares and no built-in has. Often a misspelling.
What the compiler said
error[E101]: unknown component `Buton`: no `component Buton` is declared --> src/App.wf:3:5 | 3 | Buton("Save") | ^^^^^ = help: did you mean `Button`? Or declare `component Buton { … }` = docs: https://webfluent.monzeromer.dev/errors/E101
Your editor offers this fix: Change to Button. wf fix --code E101 applies it to every place it fits.
The fix
Broken
page P(path: "/", title: "T", description: "D") {
Heading("Save").h1
Buton("Save")
}
Fixed
page P(path: "/", title: "T", description: "D") {
Heading("Save").h1
Button("Save")
}
Check the spelling, or declare it with component Buton { … }.
Each example is a whole program: it is all of src/App.wf in a project with no other .wf file (trying an example).
lints cannot lower it: it would ship a broken page.