Duolith docs

Errors E0500 to E0599

E0533 Not something duolith add can add

Message "name" is not an effect, a kit part or an npm package

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

Why

duolith add takes an effect (camera), a kit part (Button) or an npm package (a name, name@version or ./folder). A name that starts with - is an option, and is refused, so that it never reaches the package manager as one (-g would install globally). A ./folder must hold a package.json with a name.

How to fix it

Name what to add, such as duolith add date-fns, duolith add Button or duolith add camera. Write npm:name to add a package that has an effect's name.

In a terminal

duolith explain E0533