Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Has anyone been able to get studio to work with sanity-ui? I've tried 0.32.8 with base 2.2.5 and get errors attributed to having multiple verisons of sanity-ui ```useRootTheme():...

4 replies
Last updated: Jan 30, 2021
Has anyone been able to get studio to work with sanity-ui? I've tried 0.32.8 with base 2.2.5 and get errors attributed to having multiple verisons of sanity-ui
useRootTheme(): missing context value
Previously worked on ui 0.32.4 with base 2.1.4
Jan 30, 2021, 12:55 PM
Thanks for response. Unfortunately this doesn't resolve for us.
"@sanity/ui": "^0.32.8"

@sanity/base 2.2.5 (up to date)
@sanity/cli 2.2.5 (up to date)
@sanity/components 2.1.4 (up to date)
@sanity/core 2.2.3 (up to date)
@sanity/dashboard 2.1.4 (up to date)
@sanity/default-layout 2.2.5 (up to date)
@sanity/default-login 2.1.4 (up to date)
@sanity/desk-tool 2.2.5 (up to date)
@sanity/vision 2.1.4 (up to date)
Jan 30, 2021, 1:51 PM
Anything else we should try?
Jan 30, 2021, 1:51 PM
I eventually got this working. Using yarn instead of npm and using @sanity/ui@^0.32.8 instead of @sanity/ui@0.32.8.
I found in yarn.lock I was getting 0.32.8 but sanity base and desktool use ^0.32.8 and were resolving to 0.32.9. Does it matter? In any case they eventually ended up on the same version - 0.32.9.
Jan 30, 2021, 2:35 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?