
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeWelcome to Sanity! The "no document types" message is a common issue when getting started, and it's usually a quick fix.
The most common cause is that your schema types aren't properly configured in your sanity.config.js (or sanity.config.ts) file. When you use defineConfig, you need to make sure you're passing your schema types correctly.
Here's what your config should look like:
import { defineConfig } from 'sanity'
import { structureTool } from 'sanity/structure'
export default defineConfig({
name: 'my-studio',
title: 'My Studio',
projectId: 'your-project-id',
dataset: 'production',
plugins: [
structureTool() // This is required to see the structure tool interface
],
schema: {
types: [/* your schema types go here */]
}
})Common mistakes to check:
Missing the schema property entirely - Make sure you have a schema: { types: [...] } object in your config
Empty types array - If you haven't created any schema files yet, the types array will be empty. You need at least one document type defined
Not importing your schema types - If you've created schema files (like post.js, author.js, etc.), you need to import them and add them to the types array:
import post from './schemas/post'
import author from './schemas/author'
export default defineConfig({
// ...
schema: {
types: [post, author]
}
})deskTool() - this has been renamed to structureTool() and the import is now import { structureTool } from 'sanity/structure'Quick troubleshooting steps:
schemas folder)deskTool, replace it with structureTool and update the import pathIf you're still stuck, feel free to share your sanity.config.js file and your schema folder structure - the community is always happy to help debug! Since you're at 37:18 in the tutorial, double-check that you've completed the schema creation steps that should come before that timestamp. Also note that if the tutorial is a bit older, some of the plugin names may have changed, so don't worry - the concepts are the same, just the naming has been updated.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store