Sanity admin error after installing @sanity/vision plugin

11 replies
Last updated: Jan 28, 2026
I installed
sanity/vision
and the admin throws this error. Appreciate any help!sanity.config.ts


import {defineConfig} from 'sanity'
import {deskTool} from 'sanity/desk'
import {visionTool} from '<@UFY5PJF3M>/vision'
import {schemaTypes} from './schemas'

export default defineConfig({
  name: 'default',
  title: 'Next Sanity Project',

  projectId: 'blgwm78i',
  dataset: 'production',

  plugins: [deskTool(), visionTool()],

  schema: {
    types: schemaTypes,
  },
})
AI Update

I can see the issue in your code! In your import statement, you have:

import {visionTool} from '<@UFY5PJF3M>/vision'

That <@UFY5PJF3M> looks like a Slack user mention that got accidentally pasted in. The correct import should be:

import {visionTool} from '@sanity/vision'

Here's your corrected sanity.config.ts:

import {defineConfig} from 'sanity'
import {deskTool} from 'sanity/desk'
import {visionTool} from '@sanity/vision'
import {schemaTypes} from './schemas'

export default defineConfig({
  name: 'default',
  title: 'Next Sanity Project',

  projectId: 'blgwm78i',
  dataset: 'production',

  plugins: [deskTool(), visionTool()],

  schema: {
    types: schemaTypes,
  },
})

Note: If you're using a more recent version of Sanity Studio (v3.37.0+), you might also want to update from deskTool to the newer structureTool:

import {structureTool} from 'sanity/structure'
// ... 
plugins: [structureTool(), visionTool()],

The deskTool still works but has been renamed to structureTool in newer versions. Either will work fine for now!

Make sure you have @sanity/vision installed in your package.json. If you haven't installed it yet, run:

npm install @sanity/vision

That should resolve your error!

Show original thread
11 replies

Sanity – Build the way you think, not the way your CMS thinks

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.

Was this answer helpful?