Duolith docs

Errors E0500 to E0599

E0591 Type that cannot be read

Message problem

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 field's type is a type word (text, count, money, id, time, email, url, flag, one of [...], list of, page of), a group of fields, or the name of a shape, with limits in brackets such as text(1..280) or list(..20) of id. Limits are whole numbers, the lower at most the higher, and within what the type can hold: text at most 1,000,000 characters, a list at most 1,000,000 items. A mark (secret, personal, hashed) follows a comma.

How to fix it

Write the type as the message shows, such as body: text(1..500), or price: money(0..100000).

In a terminal

duolith explain E0591