
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI can see you're hitting a frustrating error that's blocking document creation! The "An error occurred during commit: e is not a function" message is a minified JavaScript error that needs some investigation.
First, regarding "Spaces" - I couldn't find this in the public Sanity documentation, but that doesn't mean it doesn't exist. Since you mentioned it's an experimental feature, it could be:
If you have access to any documentation or setup instructions for Spaces, those might have specific troubleshooting steps. You might also want to clarify with whoever enabled this experimental feature for you whether there are known issues.
The "e is not a function" message is from minified code and doesn't tell us much. Open your browser's developer console (F12, or right-click → Inspect → Console tab), then try creating a document again. Look for the full error stack trace - it should show which function is failing and where. This is crucial for diagnosing the root cause.
1. Update to the latest version:
npm update sanity @sanity/ui @sanity/vision
npm installThis error could already be fixed in a newer version.
2. Clear cache and rebuild:
rm -rf node_modules .sanity
npm install3. Check for version conflicts:
npm ls sanityLook for duplicate versions of the sanity package - this commonly causes "function not defined" errors.
Check your Node.js version:
node --versionIf you're on an older version, upgrade Node and reinstall dependencies.
Since you're using an experimental feature, there could be a configuration conflict. Try:
This type of error during commits often stems from:
Since this blocks document creation entirely and involves an experimental feature, please report it with:
sanity package version (from package.json)Report in the Sanity Community Slack #help channel or file a GitHub issue. If Spaces is a private beta feature, you may also have a dedicated support channel.
Has anyone else encountered this specific error, especially with experimental features? Please share your error details and version info!
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