Duolith docs

Errors E0300 to E0399

E0341 Unknown name or property

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 name or property is used that does not exist: a misspelt field ({post.captoin}), a variable the script never declares, a prop or option a type does not have, or an export a module does not make. Reading it would give undefined or throw when the page ran.

How to fix it

Check the spelling against the type (the message often suggests the right name), or declare what is missing in the script block.

In a terminal

duolith explain E0341

Mentioned in