Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not found error :@uiw/codemirror-extensions-basic-setup not being resolved despite being installed. #8419

Open
tiger-githubb opened this issue Jan 26, 2025 · 0 comments

Comments

@tiger-githubb
Copy link

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

  1. Create new Next.js 15 project with React 18.3.1
  2. Install Sanity using npx sanity@latest init
  3. Choose embedded studio option at /studio route
  4. Run pnpm dev
  5. Navigate to /studio
  6. See error about missing CodeMirror module

Expected behavior
Sanity Studio should load correctly at /studio route without any CodeMirror-related errors.

Screenshots

Image

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

  • 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.

@tiger-githubb 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 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
@stipsan stipsan transferred this issue from sanity-io/next-sanity Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant