Error message when updating to studio version 2.2.3

3 replies
Last updated: Jan 26, 2021
I just updated the studio to
^2.2.3
and I have this error as soon I open a document πŸ‘€
AI Update

Sorry to hear you're hitting an error right after updating to Studio v2.2.3! Without seeing the specific error message, it's a bit tricky to pinpoint the exact issue, but this kind of problem after an update is usually related to one of a few common causes.

Here are some things to try:

1. Clear your browser cache and Studio build Sometimes cached assets from the old version can cause conflicts. Try:

  • Clear your browser cache completely
  • Delete your Studio's .sanity folder and node_modules
  • Run npm install (or yarn install) again
  • Restart your dev server with sanity start

2. Check for breaking changes Studio v2.2.3 might have introduced changes that affect your schema or configuration. Check the Sanity changelog for any breaking changes between your previous version and v2.2.3.

3. Update all Sanity packages Make sure all your @sanity/* packages are on compatible versions:

npm outdated

Then update them:

npm install @sanity/base@latest @sanity/core@latest

4. Check for corrupted documents If a specific document is causing the crash (similar to this resolved issue), you might need to edit it via the CLI. You can use:

sanity documents query "*[_type == 'yourType']" --dataset=<your-dataset>

to inspect documents and potentially fix any malformed data.

5. Check the browser console Open your browser's developer tools (F12) and look at the Console tab when the error occurs. The error message there will give much more specific information about what's failing.

If you can share the specific error message you're seeing (either from the Studio UI or browser console), I can give you more targeted help! You can also jump into the Sanity Community on Slack where folks can help troubleshoot in real-time.

Component stack below:
Same here
I too updated locally to
^2.2.3
and got this message
The above error occurred in the <Card> component:
    in Card (created by DocumentPanel)
    in DocumentPanel (created by DocumentPane)
    in div (created by DocumentPane)
    in div (created by ForwardRef(ScrollContainer))
    in ForwardRef(ScrollContainer) (created by EnabledChangeConnectorRoot)
    in Tracker (created by EnabledChangeConnectorRoot)
    in EnabledChangeConnectorRoot (created by DocumentPane)
    in div (created by KeyboardShortcutResponder)
    in KeyboardShortcutResponder (created by GetHookCollectionState)
    in GetHookCollectionState (created by RenderActionCollectionState)
    in RenderActionCollectionState (created by DocumentActionShortcuts)
    in DocumentActionShortcuts (created by DocumentPane)
    in DocumentPane (created by DocumentPaneProvider)
    in DocumentHistoryProvider (created by DocumentPaneProvider)
    in DocumentPaneProvider
    in StreamingComponent
    in StreamingComponent (created by Context.Consumer)
    in WithInitialValueWrapper (created by DeskToolPane)
    in DeskToolPane (created by DeskToolPanes)
    in SplitPaneWrapper (created by DeskToolPanes)
    in div (created by Pane)
    in Pane (created by SplitPane)
    in div (created by SplitPane)
    in SplitPane (created by PanesSplitController)
    in div (created by PanesSplitController)
    in div (created by Pane)
    in Pane (created by SplitPane)
    in div (created by SplitPane)
    in SplitPane (created by PanesSplitController)
    in div (created by PanesSplitController)
    in PanesSplitController (created by DeskToolPanes)
    in div (created by DeskToolPanes)
    in DeskToolPanes (created by DeskTool)
    in DeskTool (created by withRouter(DeskTool))
    in withRouter(DeskTool) (created by DeskToolPaneStateSyncer)
    in DeskToolPaneStateSyncer (created by DeskTool)
    in DeskToolFeaturesProvider (created by DeskTool)
    in DeskTool (created by RenderTool)
    in RenderTool (created by SchemaErrorReporter)
    in RouteScope (created by SchemaErrorReporter)
    in div (created by SchemaErrorReporter)
    in div (created by SchemaErrorReporter)
    in div (created by SchemaErrorReporter)
    in SchemaErrorReporter (created by DefaultLayout)
    in DefaultLayout (created by withRouter(DefaultLayout))
    in withRouter(DefaultLayout) (created by DefaultLayoutRoot)
    in RouterProvider (created by DefaultLayoutRoot)
    in LoginWrapper (created by DefaultLayoutRoot)
    in DefaultLayoutRoot (created by AppProvider)
    in div (created by styled.div)
    in styled.div (created by Box)
    in Box (created by Styled(Box))
    in Styled(Box) (created by Card)
    in Ge (created by ThemeProvider)
    in ThemeProvider (created by ThemeColorProvider)
    in ThemeColorProvider (created by Card)
    in Card (created by Styled(Card))
    in Styled(Card) (created by AppProvider)
    in SnackbarProvider (created by AppProvider)
    in LayerProvider (created by AppProvider)
    in PortalProvider (created by AppProvider)
    in UserColorManagerProvider (created by AppProvider)
    in AppProvider (created by SanityRoot)
    in Ge (created by ThemeProvider)
    in ThemeProvider (created by SanityRoot)
    in SanityRoot
    in AppContainer

React will try to recreate this component tree from scratch using the error boundary you provided, RenderTool. react_devtools_backend.js:2430:23

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?