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

Could not find "colorScheme" context #29

Open
selbekk opened this issue Oct 26, 2022 · 0 comments
Open

Could not find "colorScheme" context #29

selbekk opened this issue Oct 26, 2022 · 0 comments

Comments

@selbekk
Copy link

selbekk commented Oct 26, 2022

Hi!

I have a "codeExample" schema object that includes several different inputs of type: "code".

Whenever I render this (version 31), I get the following error:

Error: Could not find `colorScheme` context
    at useColorScheme (http://localhost:3333/node_modules/.vite/deps/chunk-N3X6UMTK.js?v=34b030c6:35623:11)
    at $a1d4bfd2763f687f$export$20d4ca75cb144ab0 (http://localhost:3333/node_modules/.vite/deps/@sanity_code-input.js?v=0542372a:259:41)
    at renderWithHooks (http://localhost:3333/node_modules/.vite/deps/chunk-OIFGUCGF.js?v=34b030c6:25925:26)
    at mountIndeterminateComponent (http://localhost:3333/node_modules/.vite/deps/chunk-OIFGUCGF.js?v=34b030c6:28654:21)
    at beginWork (http://localhost:3333/node_modules/.vite/deps/chunk-OIFGUCGF.js?v=34b030c6:29609:22)
    at beginWork$1 (http://localhost:3333/node_modules/.vite/deps/chunk-OIFGUCGF.js?v=34b030c6:33410:22)
    at performUnitOfWork (http://localhost:3333/node_modules/.vite/deps/chunk-OIFGUCGF.js?v=34b030c6:32855:20)
    at workLoopSync (http://localhost:3333/node_modules/.vite/deps/chunk-OIFGUCGF.js?v=34b030c6:32794:13)
    at renderRootSync (http://localhost:3333/node_modules/.vite/deps/chunk-OIFGUCGF.js?v=34b030c6:32773:15)
    at recoverFromConcurrentError (http://localhost:3333/node_modules/.vite/deps/chunk-OIFGUCGF.js?v=34b030c6:32395:28)

Why is that?

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