Duolith docs

Errors E0300 to E0399

E0351 The type checker is not installed

Message the type checker's packages are not installed in folder

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

The type checker runs beside duolith under Node.js. Duolith looks for it in the folder DUOLITH_CHECKER names, then in node_modules/@duolith/checker of the project or a folder above it, then in lib/duolith/checker under the folder Duolith is installed in (<prefix>/lib/duolith/checker for <prefix>/bin/duolith); the message lists the folders it looked in. None held a checker, or the one found lacks its own packages, TypeScript among them. A build never skips the type check, so it fails instead.

How to fix it

Install duolith again, so that lib/duolith/checker is where the message looked, or set DUOLITH_CHECKER to a folder holding a checker (duolith then warns on each run that it is set). When the message names a checker whose packages are missing, install the packages in that folder.

In a terminal

duolith explain E0351

Mentioned in