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

Missing source context exception with newest sanity package on nextjs #187

Open
sepal opened this issue Apr 30, 2024 · 1 comment
Open

Comments

@sepal
Copy link

sepal commented Apr 30, 2024

Describe the bug

I've been trying to update sanity in my nextjs app, but unfortunatelly that breaks the sanity editor with the exception:

Could not find `source` context

Thrown through the DocumentInternationalizationProvider component that tries to call the useClient hook.

I don't have any issues though, if I ran the sanity editor as a standalone app (e.g. with vite). So I'm not sure what's causing the issue here.

To Reproduce

I created a small example repo here: https://github.com/sepal/next-sanity-update-example

@Designer023
Copy link

I have this issue also.

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

2 participants