Skip to content

Keeps asking for react package (@sanity/visual-editing) #1284

@Sfolkerts89

Description

@Sfolkerts89

Version

module: Node 22
nuxt: 3.-- (exising project) and 4.latest from a new nuxt instance to debug

Nuxt configuration

export default defineNuxtConfig({
  devtools: { enabled: true },

  modules: ['@nuxt/ui', '@nuxt/eslint', '@nuxtjs/sanity'],

  css: ['~/assets/css/main.css'],

  compatibilityDate: '2025-07-16',
  sanity: {
		projectId: "----------",
		dataset: "production",
	},
})

Steps to reproduce

Load a new nuxt instance, run:
npx nuxi@latest module add sanity
npm install @sanity/image-url

As per Sanity docs

Additional information

I use yarn instead of npm, but that should not be an issue?
I read there was a hotfix for this somewhere in December '24, but i still have this issue?

Initially i tried to add sanity in a Nuxt V3 boilerplate of mine, but ran into the issue. So figured i get a fresh and latest Nuxt project and run through the steps, but the issue pertains nonetheless

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions