document-internationalization icon indicating copy to clipboard operation
document-internationalization copied to clipboard

Missing source context exception with newest sanity package on nextjs

Open sepal opened this issue 9 months ago • 1 comments

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

sepal avatar Apr 30 '24 09:04 sepal

I have this issue also.

Designer023 avatar May 31 '24 08:05 Designer023