You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module not found error when trying to access Sanity Studio at /studio route with Next.js 15 and React 18.3.1. The error specifically relates to @uiw/codemirror-extensions-basic-setup not being resolved despite being installed.
To Reproduce
Create new Next.js 15 project with React 18.3.1
Install Sanity using npx sanity@latest init
Choose embedded studio option at /studio route
Run pnpm dev
Navigate to /studio
See error about missing CodeMirror module
Expected behavior
Sanity Studio should load correctly at /studio route without any CodeMirror-related errors.
Which versions of Node.js / npm are you running?
pnpm 9.6.0
Node v20.12.2
Additional context
Using Turbopack with Next.js
Project uses TypeScript
Already tried reinstalling dependencies and clearing .next folder
CodeMirror dependencies are installed but not being resolved correctly
Package manager: pnpm with peer dependency configurations for React
This issue appears to be related to the interaction between Turbopack, pnpm's module resolution, and CodeMirror's package structure in the context of an embedded Sanity Studio.
The text was updated successfully, but these errors were encountered:
tiger-githubb
changed the title
Module not found error when trying to access Sanity Studio at /studio route with Next.js 15 and React 18.3.1. The error specifically relates to @uiw/codemirror-extensions-basic-setup not being resolved despite being installed.
Module not found error : The error specifically relates to @uiw/codemirror-extensions-basic-setup not being resolved despite being installed.
Jan 26, 2025
tiger-githubb
changed the title
Module not found error : The error specifically relates to @uiw/codemirror-extensions-basic-setup not being resolved despite being installed.
Module not found error :@uiw/codemirror-extensions-basic-setup not being resolved despite being installed.
Jan 26, 2025
Module not found error when trying to access Sanity Studio at /studio route with Next.js 15 and React 18.3.1. The error specifically relates to
@uiw/codemirror-extensions-basic-setup
not being resolved despite being installed.To Reproduce
npx sanity@latest init
/studio
routepnpm dev
/studio
Expected behavior
Sanity Studio should load correctly at
/studio
route without any CodeMirror-related errors.Screenshots
Which versions of Sanity are you using?
sanity: 3.71.2 next-sanity: 9.8.42 @sanity/vision: 3
What operating system are you using?
Windows 11
Which versions of Node.js / npm are you running?
pnpm 9.6.0
Node v20.12.2
Additional context
This issue appears to be related to the interaction between Turbopack, pnpm's module resolution, and CodeMirror's package structure in the context of an embedded Sanity Studio.
The text was updated successfully, but these errors were encountered: