Help articles

Array type cannot contain array member

Sanity Studio reports Found array member declaration of type "array" - multidimensional arrays are not currently supported by Sanity when an entry in an array's of list is itself of type array.

All array types must define what kind of items they may contain. The of property must be an array of objects that describes the type of a valid item. Each entry in of must have a type property which must be the name of a valid schema type that is not an array — Sanity currently does not support arrays inside arrays, also known as multidimensional arrays.

A common use case for multidimensional arrays is when you want to represent rows and columns. One possible solution in this example is to wrap each row in an object type:

Was this page helpful?