
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeSorry to hear you're experiencing crashes with the Media and Dashboard tabs in your new Sanity project! This is a known issue that's typically related to React 19 compatibility with certain plugins. Here's what's likely happening and how to fix it:
Based on the error patterns you're seeing, this is most commonly caused by:
sanity-plugin-media and @sanity/dashboard plugins may not be fully compatible with React 19 yetUpdate Sanity Studio, the media plugin, and React to their latest compatible versions:
npm install sanity@latest sanity-plugin-media@latest react@latest react-dom@latestAccording to Sanity's React 19 compatibility guidance, most official plugins now support React 19, but you need the latest versions.
If updating doesn't work, React 18.3 is currently the most stable version for Sanity:
npm install react@18.3.1 react-dom@18.3.1 --save-exactIf you're seeing an error about "Duplicate instances of context" with the media library, this indicates you might have multiple versions of Sanity packages installed. Run:
npm dedupe
# or if using pnpm
pnpm dedupeCheck your package.json to ensure you have:
sanity: ^3.92.0 or later (for React 19 support)sanity-plugin-media: ^2.3.2 or later@sanity/dashboard: latest versionSometimes a clean install helps:
rm -rf node_modules package-lock.json
npm installNote that sanity-plugin-media is a community plugin (not an official Sanity plugin). If issues persist, you might want to consider:
The @sanity/dashboard plugin has had some React 19 compatibility issues. Make sure you're on the latest version, and check the Sanity changelog for updates.
Let us know which versions you're running and what specific error messages you're seeing, and we can provide more targeted help!
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