Duolith docs

Errors and warnings

Every error (E) and warning (W) the compiler can report, from spec/diagnostics/catalogue.yaml. Each has a stable code, and duolith explain <code> prints the same text in a terminal with the address of its page here.

Errors while reading a page

CodeTitle
E0001Unclosed element
E0002Mismatched closing tag
E0003Unterminated expression
E0004Unterminated script block
E0005Unterminated style block
E0006Unexpected character in markup
E0007Script does not parse
E0008Page cannot be read
E0009Script block after markup
E0010Markup nested too deeply

Errors while checking a page

CodeTitle
E0101Unknown element
E0102Unknown attribute
E0103Unknown class
E0104Missing required attribute
E0105Static value where an expression is needed
E0106Class written as an expression
E0107Otherwise without a show
E0108Two-way binding to something other than state
E0109Assignment to a derived value
E0110Unknown component
E0111Import names no component
E0112Unknown prop
E0113Missing required prop
E0114Assignment to a prop
E0115Slot outside a component
E0116Props in the wrong place
E0117Page used as a component
E0118Export from a component's script
E0119Slot with children
E0120Component places itself
E0121List name cannot be used
E0122Style rule without a class
E0123Not a kit part
E0124Unknown role
E0125Unknown icon
E0126Piece outside a component
E0127Unknown piece
E0128Piece given twice
E0129Kit imported without names
E0141Two pages serve one route
E0142Routes match the same paths
E0143Invalid route segment
E0144Reserved page file name
E0145Layout without a slot
E0146Unknown route parameter
E0147Export from a page's script
E0150Unknown overlay kind
E0151Anchored overlay without an anchor
E0152Unknown overlay placement
E0153Unknown sheet detent
E0154Overlay attribute written twice
E0160Image without a description
E0161Public file in the build's place
E0170Link to a refused scheme
E0171Behaviour called away from the top of a script
E0172Markup in a behaviour file
E0173Behaviour result the build cannot read
E0174Behaviour input written or unpacked
E0175Screen or markup feature in a behaviour
E0176Behaviour files in a cycle
E0177Behaviour file named or imported wrongly
E0178Behaviour value copied once
E0179Behaviour input not written in the call
E0180Behaviour the build cannot compile
E0181Heading level that is not a heading's depth
E0182Screen description that is not text

Errors E0200 to E0299

CodeTitle
E0200Hover style with no touch look
E0201Hover selector with no touch look
E0202Effect not built for native
E0203Adapters not built for native (no longer reported)
E0204Two files, one native module
E0205Selector a phone cannot match
E0206Property a phone does not draw
E0207Key or focus event no view hears
E0208Colour mix the build cannot work out
E0209At-rule a phone cannot answer
E0210Declaration a @supports block would lose
E0211Rust module not built for native
E0212Morph on native (no longer reported)
E0213Focus style on something a phone never focuses
E0220Not an effect
E0221Unknown permission in permissions.yaml
E0222Effect not available here
E0223Permission not given
E0224Sign-in refused
E0225Sign-in redirect not started here
E0226Sign-in not set up
E0227Secure value cannot be read
E0228Push subscription failed
E0229Purchase failed
E0230Photo not taken
E0240Unknown motion preset
E0241Unknown load directive
E0242Fallback outside a boundary
E0243Boundary with two fallbacks
E0244Load directive written as an expression
E0245Motion written as an expression
E0280Message key missing from a locale
E0281Catalogue is not an object of messages
E0282Message is not valid
E0283Catalogue not named after a locale
E0285Package uses a Node module
E0286Package uses a Node global
E0287Package uses a browser-only API
E0288Package builds a native addon
E0289Dependency not installed
E0290Package not fully checked

Errors E0300 to E0399

CodeTitle
E0300Rust module tools missing
E0301Rust module does not compile
E0303Unknown Rust module
E0304Rust module import outside the project's modules folder
E0340Wrong type
E0341Unknown name or property
E0342Something required is missing
E0343Value may be missing
E0344Type cannot be inferred
E0345Name read from an index signature
E0346A path through the code is not handled
E0347Module not found
E0348Comparison that is always the same
E0349Type error
E0350Node.js cannot run the type checker
E0351The type checker is not installed
E0352The type checker failed
E0353Link to a page that does not exist
E0354Public file not found
E0355Quoted value an attribute cannot take
E0356Local file that is not in the app
E0357Comment that turns type checking off
E0358Type the checker cannot see through
E0359Declaration of something that does not exist

Errors E0400 to E0499

CodeTitle
E0400Push without its Firebase configuration
E0401Firebase configuration that cannot be read
E0402Sign-in that comes back through a link
E0420Not a web address
E0421Position not found
E0422Clipboard refused
E0423Chosen file not read
E0424Recording failed
E0425Barcode scanning not supported
E0426Scanner failed
E0427Event not added
E0428Speech failed
E0429Contact not read
E0430Sensor stopped
E0431Permission not declared
E0432Mock in a native build
E0433Bridge call off its contract
E0450Font a phone cannot load
E0451Font the app cannot ship
E0452Font file missing
E0453Morph native cannot carry
E0454Two fonts for one face, or one name for two fonts
E0455Faces Android would fold into one
E0456Font weight that is not one
E0457Font file that is not a font
E0458Font family the file does not name
E0470App manifest setting that is not valid
E0471App manifest setting that is missing
E0472App id the stores do not accept
E0473Version or build number that is not valid
E0474App icon that cannot be used
E0475Launch screen setting that cannot be used
E0476Orientation or oldest system that is not valid
E0477Link domain or URL scheme that is not valid
E0478Release without a signing configuration
E0479iOS build off a Mac or without its tools
E0480Upload without the store's credentials
E0481Native bundle could not be made
E0482Native dev server could not listen
E0483Store build step that failed
E0484duolith.yaml that is not YAML
E0485Build number a store already has

Errors E0500 to E0599

CodeTitle
E0500A match misses a case
E0501A case for a value the match cannot have
E0502Something other than a case inside a match
E0503Case outside a match
E0504Case without a word
E0505The same case twice
E0506Else case that is not last
E0507Override of a part that does not exist
E0508Override of a token a part does not have
E0509Override of a slot a part does not have
E0510Override of a variant a part does not have
E0511Override naming a token the theme does not have
E0512Autocomplete value a field cannot take
E0513Environment file line that cannot be read
E0514Environment value that is not defined
E0515Environment value that is not public
E0516API description that cannot be read
E0517Part of an API description Duolith cannot type
E0518Operation the typed client cannot call as described
E0519Autocomplete word Android cannot fill
E0520Part token given a value of another kind
E0530Message key that would collide
E0531Text that cannot be a message
E0532Folder that is not a Duolith project
E0533Not something duolith add can add
E0534Package manager failed
E0535Package that cannot ship
E0536Installed package not among the dependencies
E0537Part already copied
E0538Packages could not be scanned
E0539File that could not be read or written
E0540Not an app name
E0541No such template
E0542Folder for the new app is in use
E0543Scaffolder missing or incomplete
E0550Content-Security-Policy setting that cannot be used
E0551Address of another site the Content-Security-Policy blocks
E0560Pack that cannot be read
E0561Pack rule names something that does not exist
E0562Two packs own the same thing
E0563Two packs' rules contradict each other
E0564Pack skill missing or broken
E0565Pack not installed
E0566Generated agent files out of date
E0567Web address setting that cannot be used
E0570Dev server refused another site
E0571Change that only a reload shows
E0572State that starts over after a swap
E0573Dev server could not listen
E0574Hot replacement code in a build

Warnings while reading a page

CodeTitle
W0001Pressable view that cannot be reached
W0002Field without a label
W0003Text too close to its background
W0004Pressable element inside another
W0020List without a key
W0021Large literal in markup
W0022Effect that sets off itself
W0040Unused state
W0041Unused prop
W0042Otherwise that is never shown
W0043List name hides a script name
W0060Utility that has no effect
W0061Colour written out where a token has it
W0099duolith.yaml cannot be used

Warnings while checking a page

CodeTitle
W0100Broken pack rule