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
| Code | Title |
|---|---|
E0001 | Unclosed element |
E0002 | Mismatched closing tag |
E0003 | Unterminated expression |
E0004 | Unterminated script block |
E0005 | Unterminated style block |
E0006 | Unexpected character in markup |
E0007 | Script does not parse |
E0008 | Page cannot be read |
E0009 | Script block after markup |
E0010 | Markup nested too deeply |
Errors while checking a page
| Code | Title |
|---|---|
E0101 | Unknown element |
E0102 | Unknown attribute |
E0103 | Unknown class |
E0104 | Missing required attribute |
E0105 | Static value where an expression is needed |
E0106 | Class written as an expression |
E0107 | Otherwise without a show |
E0108 | Two-way binding to something other than state |
E0109 | Assignment to a derived value |
E0110 | Unknown component |
E0111 | Import names no component |
E0112 | Unknown prop |
E0113 | Missing required prop |
E0114 | Assignment to a prop |
E0115 | Slot outside a component |
E0116 | Props in the wrong place |
E0117 | Page used as a component |
E0118 | Export from a component's script |
E0119 | Slot with children |
E0120 | Component places itself |
E0121 | List name cannot be used |
E0122 | Style rule without a class |
E0123 | Not a kit part |
E0124 | Unknown role |
E0125 | Unknown icon |
E0126 | Piece outside a component |
E0127 | Unknown piece |
E0128 | Piece given twice |
E0129 | Kit imported without names |
E0141 | Two pages serve one route |
E0142 | Routes match the same paths |
E0143 | Invalid route segment |
E0144 | Reserved page file name |
E0145 | Layout without a slot |
E0146 | Unknown route parameter |
E0147 | Export from a page's script |
E0150 | Unknown overlay kind |
E0151 | Anchored overlay without an anchor |
E0152 | Unknown overlay placement |
E0153 | Unknown sheet detent |
E0154 | Overlay attribute written twice |
E0160 | Image without a description |
E0161 | Public file in the build's place |
E0170 | Link to a refused scheme |
E0171 | Behaviour called away from the top of a script |
E0172 | Markup in a behaviour file |
E0173 | Behaviour result the build cannot read |
E0174 | Behaviour input written or unpacked |
E0175 | Screen or markup feature in a behaviour |
E0176 | Behaviour files in a cycle |
E0177 | Behaviour file named or imported wrongly |
E0178 | Behaviour value copied once |
E0179 | Behaviour input not written in the call |
E0180 | Behaviour the build cannot compile |
E0181 | Heading level that is not a heading's depth |
E0182 | Screen description that is not text |
Errors E0200 to E0299
| Code | Title |
|---|---|
E0200 | Hover style with no touch look |
E0201 | Hover selector with no touch look |
E0202 | Effect not built for native |
E0203 | Adapters not built for native (no longer reported) |
E0204 | Two files, one native module |
E0205 | Selector a phone cannot match |
E0206 | Property a phone does not draw |
E0207 | Key or focus event no view hears |
E0208 | Colour mix the build cannot work out |
E0209 | At-rule a phone cannot answer |
E0210 | Declaration a @supports block would lose |
E0211 | Rust module not built for native |
E0212 | Morph on native (no longer reported) |
E0213 | Focus style on something a phone never focuses |
E0220 | Not an effect |
E0221 | Unknown permission in permissions.yaml |
E0222 | Effect not available here |
E0223 | Permission not given |
E0224 | Sign-in refused |
E0225 | Sign-in redirect not started here |
E0226 | Sign-in not set up |
E0227 | Secure value cannot be read |
E0228 | Push subscription failed |
E0229 | Purchase failed |
E0230 | Photo not taken |
E0240 | Unknown motion preset |
E0241 | Unknown load directive |
E0242 | Fallback outside a boundary |
E0243 | Boundary with two fallbacks |
E0244 | Load directive written as an expression |
E0245 | Motion written as an expression |
E0280 | Message key missing from a locale |
E0281 | Catalogue is not an object of messages |
E0282 | Message is not valid |
E0283 | Catalogue not named after a locale |
E0285 | Package uses a Node module |
E0286 | Package uses a Node global |
E0287 | Package uses a browser-only API |
E0288 | Package builds a native addon |
E0289 | Dependency not installed |
E0290 | Package not fully checked |
Errors E0300 to E0399
| Code | Title |
|---|---|
E0300 | Rust module tools missing |
E0301 | Rust module does not compile |
E0303 | Unknown Rust module |
E0304 | Rust module import outside the project's modules folder |
E0340 | Wrong type |
E0341 | Unknown name or property |
E0342 | Something required is missing |
E0343 | Value may be missing |
E0344 | Type cannot be inferred |
E0345 | Name read from an index signature |
E0346 | A path through the code is not handled |
E0347 | Module not found |
E0348 | Comparison that is always the same |
E0349 | Type error |
E0350 | Node.js cannot run the type checker |
E0351 | The type checker is not installed |
E0352 | The type checker failed |
E0353 | Link to a page that does not exist |
E0354 | Public file not found |
E0355 | Quoted value an attribute cannot take |
E0356 | Local file that is not in the app |
E0357 | Comment that turns type checking off |
E0358 | Type the checker cannot see through |
E0359 | Declaration of something that does not exist |
Errors E0400 to E0499
| Code | Title |
|---|---|
E0400 | Push without its Firebase configuration |
E0401 | Firebase configuration that cannot be read |
E0402 | Sign-in that comes back through a link |
E0420 | Not a web address |
E0421 | Position not found |
E0422 | Clipboard refused |
E0423 | Chosen file not read |
E0424 | Recording failed |
E0425 | Barcode scanning not supported |
E0426 | Scanner failed |
E0427 | Event not added |
E0428 | Speech failed |
E0429 | Contact not read |
E0430 | Sensor stopped |
E0431 | Permission not declared |
E0432 | Mock in a native build |
E0433 | Bridge call off its contract |
E0450 | Font a phone cannot load |
E0451 | Font the app cannot ship |
E0452 | Font file missing |
E0453 | Morph native cannot carry |
E0454 | Two fonts for one face, or one name for two fonts |
E0455 | Faces Android would fold into one |
E0456 | Font weight that is not one |
E0457 | Font file that is not a font |
E0458 | Font family the file does not name |
E0470 | App manifest setting that is not valid |
E0471 | App manifest setting that is missing |
E0472 | App id the stores do not accept |
E0473 | Version or build number that is not valid |
E0474 | App icon that cannot be used |
E0475 | Launch screen setting that cannot be used |
E0476 | Orientation or oldest system that is not valid |
E0477 | Link domain or URL scheme that is not valid |
E0478 | Release without a signing configuration |
E0479 | iOS build off a Mac or without its tools |
E0480 | Upload without the store's credentials |
E0481 | Native bundle could not be made |
E0482 | Native dev server could not listen |
E0483 | Store build step that failed |
E0484 | duolith.yaml that is not YAML |
E0485 | Build number a store already has |
Errors E0500 to E0599
| Code | Title |
|---|---|
E0500 | A match misses a case |
E0501 | A case for a value the match cannot have |
E0502 | Something other than a case inside a match |
E0503 | Case outside a match |
E0504 | Case without a word |
E0505 | The same case twice |
E0506 | Else case that is not last |
E0507 | Override of a part that does not exist |
E0508 | Override of a token a part does not have |
E0509 | Override of a slot a part does not have |
E0510 | Override of a variant a part does not have |
E0511 | Override naming a token the theme does not have |
E0512 | Autocomplete value a field cannot take |
E0513 | Environment file line that cannot be read |
E0514 | Environment value that is not defined |
E0515 | Environment value that is not public |
E0516 | API description that cannot be read |
E0517 | Part of an API description Duolith cannot type |
E0518 | Operation the typed client cannot call as described |
E0519 | Autocomplete word Android cannot fill |
E0520 | Part token given a value of another kind |
E0530 | Message key that would collide |
E0531 | Text that cannot be a message |
E0532 | Folder that is not a Duolith project |
E0533 | Not something duolith add can add |
E0534 | Package manager failed |
E0535 | Package that cannot ship |
E0536 | Installed package not among the dependencies |
E0537 | Part already copied |
E0538 | Packages could not be scanned |
E0539 | File that could not be read or written |
E0540 | Not an app name |
E0541 | No such template |
E0542 | Folder for the new app is in use |
E0543 | Scaffolder missing or incomplete |
E0550 | Content-Security-Policy setting that cannot be used |
E0551 | Address of another site the Content-Security-Policy blocks |
E0560 | Pack that cannot be read |
E0561 | Pack rule names something that does not exist |
E0562 | Two packs own the same thing |
E0563 | Two packs' rules contradict each other |
E0564 | Pack skill missing or broken |
E0565 | Pack not installed |
E0566 | Generated agent files out of date |
E0567 | Web address setting that cannot be used |
E0570 | Dev server refused another site |
E0571 | Change that only a reload shows |
E0572 | State that starts over after a swap |
E0573 | Dev server could not listen |
E0574 | Hot replacement code in a build |
Warnings while reading a page
| Code | Title |
|---|---|
W0001 | Pressable view that cannot be reached |
W0002 | Field without a label |
W0003 | Text too close to its background |
W0004 | Pressable element inside another |
W0020 | List without a key |
W0021 | Large literal in markup |
W0022 | Effect that sets off itself |
W0040 | Unused state |
W0041 | Unused prop |
W0042 | Otherwise that is never shown |
W0043 | List name hides a script name |
W0060 | Utility that has no effect |
W0061 | Colour written out where a token has it |
W0099 | duolith.yaml cannot be used |
Warnings while checking a page
| Code | Title |
|---|---|
W0100 | Broken pack rule |