
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI can see you're running into a classic version mismatch issue! The error you're getting is because you're following a guide written for Sanity Studio v2, but you're likely using Sanity Studio v3 (or v4). The part: import system was completely removed in Studio v3, which is why you're getting that "Can't resolve" error.
In Studio v3+, the import path has changed. Instead of:
// ❌ This is v2 syntax - won't work in v3+
import S from 'part:@sanity/desk-tool/structure-builder'You need to use:
// ✅ This is v3+ syntax
import {structureTool} from 'sanity/structure'Here's the modern way to configure the Structure Builder:
1. Create a structure file (e.g., structure/index.ts or structure.ts):
import type {StructureResolver} from 'sanity/structure'
export const structure: StructureResolver = (S) =>
S.list()
.id('root')
.title('Content')
.items([
S.documentTypeListItem('post').title('Blog Posts'),
S.documentTypeListItem('author').title('Authors'),
// Add more document types as needed
])2. Import and configure it in your sanity.config.ts:
import {defineConfig} from 'sanity'
import {structureTool} from 'sanity/structure'
import {structure} from './structure'
export default defineConfig({
// ...your other config
plugins: [
structureTool({structure}),
// ...other plugins
],
})part: system and required a deskStructure.js filesanity.config.tsS) works mostly the same, but how you import and configure it is completely differentThe guide you were following is outdated. For current documentation, check out:
The good news is that once you update your imports and configuration structure, most of your actual Structure Builder code (the S.list(), S.documentTypeListItem(), etc.) will work with minimal changes!
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