Closed clinejj closed 1 month ago
Actually, it seems this was caused by https://github.com/sanity-io/sanity/pull/7172 where they changed the Vite config to add conditions.
A similar issue was resolved in Storybook here: https://github.com/storybookjs/storybook/pull/28581
I'm talking to Sanity support to see if this is an issue on their side, but it also might be related to how this plugin loads React possibly?
@clinejj Which version was the last one that was working for you? I went back to 3.48.1 and the issue remains there.
I had it working in 3.51.0
This should be resolved in sanity 3.52.3+ (see release notes), fixed in this PR: https://github.com/sanity-io/sanity/pull/7267
After updating our Sanity dependency to 3.52.0, we were no longer able to start the studio in dev mode (
sanity dev --host=0.0.0.0
). It would show the following error:Looking at the changelog on Sanity, it appears this PR updating how imports work related to their auto-updating functionality may have triggered it: https://github.com/sanity-io/sanity/pull/7187
Either way, would it be possible to address this so we can update to the newer versions of Sanity Studio?