Duolith docs

Errors E0300 to E0399

E0342 Something required is missing

Message {TypeScript's message} (TSnumber)

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

Why

A prop a component needs, a property an object type requires, or an argument a function takes is not given. The component or function would run without it.

How to fix it

Pass the missing prop or argument, or mark it optional (?) or give it a default where it is declared.

In a terminal

duolith explain E0342

Mentioned in