
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeThis error is happening because you're mixing Sanity Studio v2 and v3 dependencies in your monorepo. The @sanity/vision plugin you have installed is the newer v3 version, but something in your setup is trying to run it with Studio v2 commands or dependencies that expect the old sanity.json configuration file.
Here's what's happening: Sanity Studio v3 completely removed sanity.json in favor of JavaScript/TypeScript configuration files (sanity.config.js or sanity.config.ts). The v3 vision plugin doesn't have a sanity.json file because it doesn't need one - but your setup is looking for it.
Option 1: Use Studio v3 (recommended)
Make sure you're fully on Studio v3:
package.json - you should have "sanity": "^3.x.x" (not separate @sanity/core, @sanity/base, etc.)sanity.json file if it existssanity.config.ts (or .js) file in your Studio directory:import {defineConfig} from 'sanity'
import {structureTool} from 'sanity/structure'
import {visionTool} from '@sanity/vision'
export default defineConfig({
name: 'default',
title: 'My Project',
projectId: 'your-project-id',
dataset: 'production',
plugins: [
structureTool(),
visionTool(),
],
schema: {
types: [/* your schema types */],
},
})npm run dev or sanity dev instead of sanity startOption 2: Use Studio v2 (not recommended - it's deprecated)
If you need to stay on v2 for some reason:
npm install @sanity/vision@^2sanity.json filesanity startThe v2 to v3 migration is straightforward for most projects. Check out the official migration guide for a complete walkthrough. In a monorepo setup, make sure all your Sanity dependencies are aligned to the same major version across packages.
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