Error caused by multiple versions of @sanity/ui installed
I can see you're experiencing an error with Studio v2.2.3 when opening documents. While you didn't provide the specific error message (just the "π" emoji), this version had some known issues that affected several users.
Here are the most common solutions that worked for others experiencing problems after updating to Studio v2.2.3:
1. Clear browser cache and cookies Studio v2 stores local state in your browser, and sometimes updates can cause conflicts. Try:
- Clearing your browser's cache and cookies for your Studio URL
- Opening Studio in an incognito/private window to test
- Trying a different browser
2. Check for corrupted documents If the error only happens with specific documents, there might be corrupted data. You can use the CLI documents commands to inspect and fix problematic documents:
To view a specific document:
sanity documents get YOUR_DOCUMENT_IDTo edit a document directly:
sanity documents create --id YOUR_DOCUMENT_ID --replaceThis will open your configured $EDITOR with the current document content. When you save and close the editor, it will replace the document with your edited version.
Important notes about the CLI:
- Get the document's
_idfrom the URL when you try to open it (e.g.,http://localhost:3333/desk/post;14f09fac-ddad-d4d4-9ed5-4b12346b3f90) - If the document was published but stuck in draft mode, you may need to edit the draft version by prefixing the ID with
drafts.(e.g.,drafts.14f09fac-ddad-d4d4-9ed5-4b12346b3f90) - The
--replaceflag will overwrite the existing document with your changes
3. Update to a more stable version Studio v2.2.3 was a relatively early v2 release. Consider updating to a later v2 patch version:
npm install sanity@latest-v24. Check your browser console Open your browser's developer console (F12 or right-click β Inspect β Console) to see the specific error message. Common errors include:
TypeError: (value || []).some is not a function- usually indicates a schema mismatch where an array field has non-array data- Schema validation errors
- Missing field errors
Important note: Studio v2 is now legacy software. The current version is Studio v3 (with v4 available for the latest features). If you're able to migrate, upgrading to v3+ will give you better stability, performance, and ongoing support.
If you can share the specific error message from your browser console, I can provide more targeted guidance for your exact issue!
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.