> For AI agents: the complete Sanity documentation index is available at [https://www.sanity.io/docs/llms.txt](https://www.sanity.io/docs/llms.txt).

# Structure: Schema type not found

This error occurs when the Structure tool tries to find a schema type but does 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()`:

```javascript
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
  ])
})

```



