Structured Content 2022: Join our conference to explore fresh perspectives on content and digital experiences →

Structure: Schema type not found

This error occurs when the desk structure tries to find a schema type but did not find a match. Usually this is caused by a typo in the type name, or forgetting to import and include the document type in the studio schema definition.

First, check for any typos (obviously).

Secondly, check your schema definition (usually <your-studio>/schemas/schema.js) and ensure that you have both imported and included the document type in the call to createSchema():

import createSchema from 'part:@sanity/base/schema-creator'
import schemaTypes from 'all:part:@sanity/base/schema-type'

// Make sure you import the document type
import someDocumentType from './someDocumentType'
export default createSchema({ name: 'default', types: schemaTypes.concat([
// Make sure you include the type in this array:
someDocumentType
]) })

Was this article helpful?