
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeThis is a dependency conflict issue that's actually not a problem with your code, but rather with an outdated transitive dependency. Here's what's happening:
The @sanity/block-content-to-hyperscript package is deprecated and has been replaced by modern alternatives. Even though you're not directly using it in your project, some older Sanity package might still have it as a dependency, which is causing the version conflict with @sanity/generate-help-url.
The best approach is to migrate away from the deprecated packages. According to the official Sanity documentation, here are the modern replacements:
For HTML: Use @portabletext/to-html instead of @sanity/block-content-to-html or @sanity/block-content-to-hyperscript
For React: Use @portabletext/react instead of @sanity/block-content-to-react
For other frameworks: There are modern packages for Vue, Svelte, React Native, and Astro
If you can't migrate immediately, try these:
{
"resolutions": {
"@sanity/generate-help-url": "^3.0.0"
}
}Use yarn resolutions or npm overrides to force a single version
Clear your lock file and reinstall:
rm -rf node_modules package-lock.json
npm installCheck which Sanity packages you're using and update them to their latest versions. The core Sanity packages have been updated to remove dependencies on these deprecated packages. Run:
npm outdatedThen update your Sanity packages:
npm update @sanity/client sanityThe block-content-to-hyperscript package is no longer maintained by Sanity, so this isn't something that will be "fixed in the core Sanity package" - it's been replaced by the modern Portable Text tooling mentioned above.
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