E109

Error

Syntax and structure

E109 — An element this output cannot draw

A PDF or a slide deck has no buttons, inputs, handlers or routes; an interactive element in one would be drawn as nothing.

The fix

draw it as text, or build the page as a site.

Why this rule exists

A Button, an Input, a handler or a Router in a project whose output_type is pdf or slides. With "build": { "output_type": "pdf" } in webfluent.app.json (the example is not compiled here: what it draws depends on the config):

page Report(path: "/", title: "Report", description: "The quarter.") {
    Document(title: "Q1 report") {
        Heading("Q1 report").h1
        Button("Print")
    }
}

Paper has no controls (Button, Input, Select, Checkbox, Radio, Switch, Slider, DatePicker, FileUpload, Textarea, Form, IconButton, ButtonGroup, Dropdown, Combobox and every other control), no navigation (Router, Navbar, Sidebar, Tabs, Menu), no overlays (Modal, Dialog, AlertDialog, Sheet, Popover, Toast, Tooltip), no media that plays (Video, Audio, Carousel), no other page inside it (Frame) and nothing a script draws (Host, Element, Portal).

lints cannot lower it: it would ship a broken page.