Comments (12)
I got the same error this morning after starting a blank Sanity project using sanity init
.
I rolled Sanity (and Vision) back to 3.36.0
and the issue went away.
from sanity.
from sanity.
Yep! Seems like a bug with 3.36.1.
from sanity.
I ran into the same problem after the Sanity update. I reinstalled as above to 3.36.0 but nothing changed. The same error is displayed "Uncaught error: Sanity LocaleContext value missing. Is this hook being used outside LocaleContext.Provider?"
"dependencies": {
"@sanity/vision": "^3.36.0",
"react": "^18",
"react-dom": "^18",
"react-icons": "^4.11.0",
"react-is": "^18.2.0",
"sanity": "^3.36.0",
"styled-components": "^6.1.8"
},
from sanity.
Hello @aquamarineru ! It should be 3.36.2
rather than 3.36.0
. You can double-check by running npm ls sanity
to verify which version you're running (feel free to put that output in this thread as well)!
You can either change your package.json to:
"dependencies": {
"@sanity/vision": "^3.36.2",
//..the rest of your packages...
"sanity": "^3.36.2",
}
Or use something like https://www.npmjs.com/package/npm-check-updates to update packages.
Please let me know!
from sanity.
I'm getting the same error this morning
from sanity.
Me too
from sanity.
I tried rolling back like @pixeldust suggested, but the issue still persists. Could this be a bug inside the dataset? I also created the dataset this morning using sanity cli
from sanity.
I had the same issue, did what @pixeldust suggested and rolled back to 3.36.0 for both Sanity and Sanity Vision.
from sanity.
I tried rolling back like @pixeldust suggested, but the issue still persists. Could this be a bug inside the dataset? I also created the dataset this morning using sanity cli
whoops, I just reinstalled sanity and rolling back to 3.36.0 does work!
from sanity.
Hello all! This was indeed a bug in 3.36.1. 3.36.2 was just released, which should hopefully resolve this error.
from sanity.
Hello cngonzalez
Thank you very much after updating to the latest version everything worked
from sanity.
Related Issues (20)
- Support `resolveReferences: {maxDepth: 5})` via graphQL without using gatsby or gridsome
- Small UI bug where the spinner in Vision tool is not centered HOT 1
- Internal server error on 'sanity deploy' HOT 4
- Image metadata: No `Make` and `Model` properties in exif HOT 1
- Sanity studio jumps up when two modals open at the same time. HOT 1
- Image field validation does not work if sub-fields are valid HOT 3
- `@sanity/block-tools` — `<span>`s with only whitespace are removed
- Sanity file picker UI has no spacing between divs HOT 1
- Sanity Studio Rich Text Editor does not properly close 3rd level ordered list tags
- Stega breaks layout with CSS `letter-spacing`
- Type error: Cannot find module 'sanity' or its corresponding type declarations.
- Hotspot cropping preview doesn't respect curent crop
- Mark selected menu item doesn't work as it works for default menu items HOT 1
- TypeGen does not generate correct type when querying an array containing multiple references types HOT 1
- Opening one collapsible column field causes it's neighbor to disappear because they are bottom aligned.
- Pasting in PTE not working on Firefox HOT 1
- Cannot delete documents from a migration script
- Automatically infer types of queries using groq and @sanity/codegen
- Presentation tool not working using hosted studio
- error cannot read properties of null (reading 'scrollTop')
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sanity.