V08
Warning
Vocabulary
V08 — An icon the runtime does not draw
Icon and IconButton draw the built-in icons; any other name shows as the word.
What the compiler said
warning[V08]: `rocket` is not an icon the runtime draws; it will show as the word --> src/App.wf:3:10 | 3 | Icon("rocket") | ^ = help: The icons: close, menu, search, home, user, settings, check, plus, minus, edit, trash, star, heart, mail, bell, download, upload, eye, link, calendar, filter, chevron-down, chevron-right, chevron-left, info, warning, arrow-left, arrow-right, logout, copy, sun, moon, folder, folder-plus, folder-off, file, file-plus, refresh, alert-circle, clock, dot, diff, book, git-pull-request, pin, git-branch, more-horizontal, window-minimize, window-maximize, outline, help-circle, collapse-all, locate, chevron-up, globe, external-link, panel-down, panel-up, code, monitor, git-commit, play, layers, insert, grid, list, square, pill, image, sparkle, lock, type, pointer, reach, frame, line, pipette, comment, hand, zoom, ruler, eye-off, unlock = docs: https://webfluent.monzeromer.dev/errors/V08
Your editor offers this fix: Change to lock. wf fix --code V08 applies it to every place it fits.
The fix
Broken
page P(path: "/", title: "T", description: "D") {
Heading("Launch").h1
Icon("rocket")
}
Fixed
page P(path: "/", title: "T", description: "D") {
Heading("Launch").h1
Icon("upload")
}
Use one of the built-in icons the message lists.
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 may lower it:
"lints": { "V08": "off" }
// wf-allow(V08)