Upgrading to Sanity 2.35.0 caused a compilation error due to an issue with the auto-id module.
This error appears to be a dependency resolution issue in your Sanity Studio v2 project. The module @reach/utils/use-isomorphic-layout-effect can't be found because of how nested dependencies are being resolved in your node_modules folder.
Since I cannot verify this as a documented issue specific to version 2.35.0, I'll provide general troubleshooting steps that typically resolve module resolution problems:
Try these solutions in order:
1. Clean install (most likely to fix the issue)
rm -rf node_modules
rm package-lock.json # or yarn.lock if using yarn
npm install # or yarn installThis forces your package manager to rebuild the dependency tree from scratch, which often fixes nested dependency resolution issues.
2. Try different package manager flags
If you're using npm 7 or later, dependency resolution changed. Try:
npm install --legacy-peer-deps3. Explicitly install the missing package
Sometimes manually installing the dependency helps:
npm install @reach/utils4. Try a different package manager
Different package managers handle nested dependencies differently. If you're using npm, try yarn or pnpm:
yarn install
# or
pnpm installImportant context about Studio v2:
Studio v2 support ended on December 7, 2023 and is no longer receiving updates or security patches. If you're experiencing dependency issues with v2, this is a strong signal to migrate to Studio v3, which uses a completely different dependency architecture and doesn't rely on the @reach libraries that are causing your current issue.
Studio v3 offers significant improvements including modern build tooling, better TypeScript support, and active ongoing support. While migration requires some work, it's necessary for continued security and feature updates.
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.