Sanity Pioneers: Get early access to betas, extra AI credits, and a direct line to the engineering team. Apply now

@sanity/icons default export not found error after sanity init

6 repliesLast updated: Nov 29, 2025

Hey!When after creating a new project
sanity init
(with empty schema), I get this error when I run
sanity start
:
Warning in ./node_modules/@sanity/ui/dist/es/atoms/icon/icon.js
16:9-14 "export 'default' (imported as 'icons') was not found in '@sanity/icons'
 @ ./node_modules/@sanity/ui/dist/es/atoms/icon/icon.js
 @ ./node_modules/@sanity/ui/dist/es/atoms/icon/index.js
 @ ./node_modules/@sanity/ui/dist/es/atoms/textInput/textInput.js
 @ ./node_modules/@sanity/ui/dist/es/atoms/textInput/index.js
 @ ./node_modules/@sanity/ui/dist/es/atoms/index.js
 @ ./node_modules/@sanity/ui/dist/es/index.js
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/normalize.css/normalize.css ./node_modules/@sanity/server/lib/browser/entry-dev.js
I think it's linked with the latest release of the Studio.
AI Update

This error is happening because you're accidentally running Sanity Studio v2 instead of v3. The warning about @sanity/icons default export and references to @sanity/base with the parts system (part:@sanity/base/sanity-root) are telltale signs of the older v2 architecture.

Here's what's likely happening: even though you ran sanity init, your project somehow got initialized with v2 dependencies instead of v3. This can happen if you have an older version of the Sanity CLI installed globally.

To fix this:

npm install -g @sanity/cli@latest
# Remove the project directory
rm -rf your-project-folder

# Create a new project with the updated CLI
sanity init

How to verify you're on v3:

The issue you're seeing is that @sanity/icons removed its default export in newer versions, but v2's @sanity/ui still tries to import it the old way, causing this compatibility mismatch. Studio v3 uses the modern import structure and doesn't have this problem.

If you continue having issues after updating the CLI and reinitializing, check that you don't have any old Sanity packages cached or lingering in your global npm/yarn cache.

Show original thread
6 replies

Was this answer helpful?

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.

Related contributions