Open ilyagru opened 11 months ago
Same problem
Got the same problem. Same node version:
I'm hitting this issue as well when trying to create a custom nav bar using the instructions at https://www.sanity.io/docs/studio-components-reference#db9fc60782a3
npm v10.2.3 Node v21.2.0
I just had this issue happening quite randomly on a Remix project with an embedded Studio. No work was being done on the Sanity schemas or setup when it started happening. It would crash when i went to add new content on a Sanity document. I was able to get around it by opening the local Studio in a new browser on Incognito mode, and logging in again to Sanity, So perhaps it's some caching issue?
Same here
"next": "14.0.4",
"next-sanity": "^7.0.10",
"@sanity/vision": "^3.24.1",
"sanity": "^3.24.1"
Worked before updating, now i get Error: Workspace: missing context value
Running into the same issue with my project, Has anyone found a workaround?
Same error: missing context value. My local sanity studio works fine using npm run dev When I use sanity deploy that studio throws the same error.
Same here
After latest updates, same issue is surfaced when hosting on Vercel, but locally all works fine. Frustrating, because absolutely not clear how to fix it.
Is there any progress on this issue? I've tried many different approaches to find what causes that, but couldn't find it.
I've encountered this issue as well, after adding a plugin to Sanity.
I fixed this issue by
node_modules
folder in my project directorypnpm store prune
in terminalpnpm install
Describe the bug
When embedding the studio into a Next.js app, the desk tool crashes and throws an error "Uncaught Error: Workspace: missing context value". What's interesting is that I have 2 identical projects and one of them works fine, the other crashes with the mentioned error. If I build the studio separately and go to localhost:3333/studio, it doesn't crash.
What could be the issue?
To Reproduce
Steps to reproduce the behavior:
sanity.config.ts
Expected behavior
No error is thrown.
Screenshots If applicable, add screenshots to help explain your problem.
Which versions of Sanity are you using?
Sanity v3.19.0 Next.js both v13.5.5 and v14.0.1
What operating system are you using?
macOS 14.1
Which versions of Node.js / npm are you running?
Run
npm -v && node -v
in the terminal and copy-paste the result here.Node.js v18.18.2 pnpm v8.10.0
Additional context
Add any other context about the problem here.
Security issue?
Any security issues should be submitted directly to security@sanity.io. In order to determine whether you are dealing with a security issue, ask yourself these two questions: