Renamed plugin sanity-plugin-vision
The Studio v2 plugin sanity-plugin-vision was renamed @sanity/vision. On Studio v3 and later, add visionTool() to your Studio configuration.
This page describes a Studio v2 plugin
The rename warning that brought you here is printed by sanity-plugin-vision, which loads only through the Studio v2 parts system. If you're on Studio v3 or later, follow Studio v3 and later below, or read The Vision plugin for the full current documentation.
The plugin sanity-plugin-vision has been renamed to @sanity/vision.
What should I do?
The steps depend on which major version of Sanity Studio you're running.
Studio v3 and later
- Install the package with
npm install @sanity/vision - Add
visionTool()to thepluginsarray in your Studio configuration:
import {defineConfig} from 'sanity'
import {structureTool} from 'sanity/structure'
import {visionTool} from '@sanity/vision'
export default defineConfig({
projectId: 'YOUR_PROJECT_ID',
dataset: 'production',
plugins: [structureTool(), visionTool()],
})Vision is not bundled with the Studio, but new projects scaffolded by npm create sanity@latest already include it. For the configuration options, see The Vision plugin.
Studio v2
- Install the Studio v2 release of the package with
npm install @sanity/vision@2 - Remove
"vision"from thepluginsarray in yoursanity.json, and add@sanity/visionin its place.