Dashboard beta

Troubleshooting

Look up a Dashboard error code, such as DASH1001, to find what went wrong and how to fix it.

When the Dashboard hits a problem you can fix in your app, it reports a code such as DASH1001, with what went wrong, how to fix it, and a link to the code's section on this page. Codes never change once they ship.

Find the code in the console

Under sanity dev, the browser console prints the full error: the code and what went wrong, the fix, and a link to the code's section on this page.

[DASH1013] The worker "sync" isn't running.
├▶ fix: Check that "sync" is the name of a defineWebWorker in the app's sanity.cli.ts, …
╰▶ see: https://www.sanity.io/docs/dashboard-beta/troubleshooting#dash1013

Everywhere else, the console prints one line with the code and what went wrong:

[DASH1013] The worker "sync" isn't running.

Find the code on the error screen

When an app can't load, the Dashboard shows an error screen in its place. Under sanity dev, the screen shows what went wrong, the fix, and a link. Everywhere else, it shows a short title, such as This app couldn't load, with the code in Details.

Read the code in your app

When the Dashboard refuses a message from your app, the error your app receives carries code, message, fix, and docsUrl. Where the App SDK already has a code for the failure, such as NO_RESPONDER or REFUSED, code keeps that value, and docsUrl links to the Dashboard code's section on this page. For an app that runs in an iframe, a refused Comlink message has the Dashboard code itself as code.

App loading and embedding

DASH1001: This app couldn't load

The Dashboard reports DASH1001 when it can't load the code for one of your app's views or web workers. It shows an error screen where the app would be.

[DASH1001] The Dashboard couldn't load "MODULE_ID".

MODULE_ID is the app and view the Dashboard tried to load, such as content-app/App.

Under sanity dev, the error screen shows what went wrong, how to fix it, and a link to this section. Details shows the underlying failure, such as a 404, a CORS error, or an error your code threw while it loaded. Everywhere else, the error screen shows This app couldn't load, with the code in Details.

Cause

The browser couldn't fetch or run the app's built files. Common reasons:

  • sanity dev stopped, or the app failed to build.
  • A deployed app's files are missing or out of date.
  • A studio hosted on your own domain doesn't send the Access-Control-Allow-Origin header for the Dashboard's address.
  • The app's code threw an error while it loaded.

Fix

Open Details on the error screen to see the underlying failure, then:

  • Under sanity dev, check that the dev server is still running and that the terminal shows no build errors.
  • For a deployed app, run npx sanity@latest deploy again.
  • For a studio on your own domain, check that your host serves the remoteEntry-*.js file and the /static/ folder unchanged at the root of its URL, and that it sends Access-Control-Allow-Origin for https://YOUR_ORGANIZATION_ID.sanity.run. See External hosted Studios.

DASH1003: This app couldn't start

The Dashboard reports DASH1003 when a view's file loads but its default export isn't a view the Dashboard can render. The Dashboard shows an error where the view would be.

[DASH1003] The view "MODULE_ID" loaded, but its file doesn't default-export a view from unstable_defineView.

MODULE_ID identifies the app and the view.

Cause

The Dashboard renders a panel, tile, or asset source view from the default export of the file in its src. That export must be the result of unstable_defineView from sanity/dashboard.

Fix

  • Default-export the view from its file with unstable_defineView. For a window view, set entry in defineApplication instead, and the CLI creates the view for you.
  • Run npx sanity@latest dev or npx sanity@latest deploy again.

A panel view's file:

import {unstable_defineView} from 'sanity/dashboard'

export default unstable_defineView('panel', {
  title: ({view}) => view.title,
  panel: () => <p>Activity</p>,
})

For each view type's export, see the Extension API reference.

DASH1004: You don't have access to this studio's project

The Dashboard reports DASH1004 when a studio, or one of its workspaces, uses a project that the signed-in user can't access.

[DASH1004] Studio "STUDIO_ID" has a workspace, "WORKSPACE_NAME", using project "PROJECT_ID", which you can't access. The workspace is hidden.
[DASH1004] Studio "STUDIO_ID" is on project "PROJECT_ID", which you can't access.

STUDIO_ID is the studio's ID, WORKSPACE_NAME is the workspace's name, and PROJECT_ID is the project the studio uses.

Cause

The projectId in the studio's sanity.config is wrong, or you aren't a member of that project. The Dashboard hides a workspace on a project you can't access.

Fix

Check the projectId in the studio's sanity.config. If it's right, ask an administrator of the project to add you.

DASH1005: This app can't be reached

An app or studio deployed before Dashboard 2.0 runs in an iframe and talks to the Dashboard through Comlink messages. Before it shows one, the Dashboard requests the app's URL to check that the app allows it. It reports DASH1005 when that request fails.

[DASH1005] The Dashboard couldn't reach "APP_TITLE" at APP_URL to check that it can be shown.

APP_TITLE is the app's title, and APP_URL is the address the Dashboard requested.

Cause

The app's URL doesn't respond: it's wrong, the app is down, or the network blocked the request.

Fix

Open APP_URL in a browser tab and check that the app loads. If the URL is wrong, update it where the app is registered in your organization.

DASH1006: This app can't be shown in the Dashboard

An app or studio deployed before Dashboard 2.0 runs in an iframe and talks to the Dashboard through Comlink messages. The Dashboard reports DASH1006 when the app's Content-Security-Policy header doesn't allow the Dashboard to show it.

[DASH1006] "APP_TITLE" can't be shown in the Dashboard: its Content-Security-Policy doesn't allow it (POLICY).

APP_TITLE is the app's title, and POLICY is the policy the app sent, such as frame-ancestors 'self'.

Cause

The frame-ancestors directive in the app's Content-Security-Policy doesn't include the Dashboard's address, so the browser won't show the app in the Dashboard.

Fix

Add the Dashboard's address, https://YOUR_ORGANIZATION_ID.sanity.run, to the frame-ancestors directive of the app's Content-Security-Policy.

The header your app's host sends:

Content-Security-Policy: frame-ancestors 'self' https://YOUR_ORGANIZATION_ID.sanity.run

DASH1007: This app can't be shown in the Dashboard

An app or studio deployed before Dashboard 2.0 runs in an iframe and talks to the Dashboard through Comlink messages. The Dashboard reports DASH1007 when the app sends an X-Frame-Options header, which stops the browser from showing it in the Dashboard.

[DASH1007] "APP_TITLE" can't be shown in the Dashboard: its X-Frame-Options header is "VALUE".

APP_TITLE is the app's title, and VALUE is the header's value, such as DENY or SAMEORIGIN.

Cause

X-Frame-Options can't allow a specific address such as the Dashboard's, so the browser blocks the app.

Fix

Remove the X-Frame-Options header from the app's responses. To keep other sites from framing the app, send a Content-Security-Policy with a frame-ancestors directive that includes the Dashboard's address, https://YOUR_ORGANIZATION_ID.sanity.run, instead.

The header that replaces X-Frame-Options:

Content-Security-Policy: frame-ancestors 'self' https://YOUR_ORGANIZATION_ID.sanity.run

DASH1008: This app isn't connected to the Dashboard

An app or studio deployed before Dashboard 2.0 runs in an iframe and talks to the Dashboard through Comlink messages. The Dashboard reports DASH1008 when the app loads but doesn't connect in time.

[DASH1008] "APP_TITLE" loaded, but didn't connect to the Dashboard in time.

APP_TITLE is the app's title.

Cause

The app failed while it loaded, or its App SDK version can't connect to the Dashboard.

Fix

  • Open the app in its own browser tab and check that it loads without errors.
  • Update @sanity/sdk-react to 3.9.0 or later.

To get every Dashboard 2.0 feature, migrate the app to defineApplication.

DASH1009: This studio doesn't support every Dashboard feature

The Dashboard reports DASH1009 when a studio doesn't support some of the Dashboard's features.

[DASH1009] Studio "APP_TITLE" doesn't support these Dashboard features: FEATURES.

APP_TITLE is the studio's title, and FEATURES lists the features it doesn't support, such as Content Agent.

Cause

The studio was built with an older version of sanity, or its deployed manifest is out of date.

Fix

  • Upgrade the studio to the latest version of sanity.
  • Run npx sanity@latest deploy so the studio and its manifest are deployed again.

To get every Dashboard 2.0 feature, see Migrate a studio or SDK app to Dashboard 2.0.

DASH1010: A local app couldn't be read

Under sanity dev, the dev server tells the Dashboard which local apps to list. The Dashboard reports DASH1010 when it can't read one of them, and leaves that app out.

[DASH1010] The dev server sent an app at SOURCE that the Dashboard can't read, so it isn't listed.
[DASH1010] The dev server sent an app that the Dashboard can't read, so it isn't listed.

SOURCE is the address of the local app, such as localhost:3334.

Cause

Your version of @sanity/cli describes local apps in a format this Dashboard doesn't read.

Fix

  • Update @sanity/cli to the latest version.
  • Restart sanity dev.

DASH1011: This app stopped working

The Dashboard reports DASH1011 when one of your app's views throws an error while the Dashboard hides, shows, or closes it. The Dashboard and other apps keep working.

[DASH1011] The app "APP" threw an error while the Dashboard was hiding or showing it.
[DASH1011] The app "APP" threw an error while the Dashboard was closing it.

APP is the app and view, such as content-app/App.

Cause

Code that runs when the view is hidden or removed threw an error. This is often a component's effect cleanup.

Fix

Find the error and fix it. Under sanity dev, the console prints it after this message.

Web workers and the message bus

DASH1002: This app ran into a problem

The Dashboard reports DASH1002 when one of your app's web workers calls bus.subscribe with a topic that isn't a state topic.

[DASH1002] Cannot subscribe to "TOPIC" from a worker: only state topics can be subscribed.

TOPIC is the topic the worker tried to subscribe to.

The worker's subscription is refused with the error code OWNERSHIP_MISMATCH. The error also carries fix and docsUrl, which links to this section.

Cause

In a web worker, bus.subscribe accepts state topics, such as preferences.color-scheme, and workers.post. Event topics, such as navigation.location.update, can be sent with bus.emit but not subscribed to.

Fix

Subscribe to a state topic, or to workers.post to answer your app's views. To send on an event topic, use bus.emit. Read Dashboard state lists the state topics.

This worker answers its app's views by subscribing to workers.post:

import type {WebWorkerProps} from '@sanity/sdk/dashboard'

export default ({bus, worker}: WebWorkerProps) => {
  const controller = new AbortController()

  bus.subscribe(
    'workers.post',
    (message) => message.reply(`${worker.name} is running`),
    {signal: controller.signal},
  )

  return () => controller.abort()
}

For more about the worker's bus, see Run a background service.

DASH1012: This app couldn't send data to its web worker

The Dashboard reports DASH1012 when a message for one of your app's web workers can't be sent, because it contains data that can't be copied to the worker.

[DASH1012] The Dashboard couldn't send WHAT to the worker "WORKER": it can't be structured-cloned.

WORKER is the worker's name. WHAT is one of a view's post, the reply to "TOPIC", or a value of "TOPIC".

When WHAT is a view's post, the view's post() rejects with a MessageBusError whose code is REFUSED. The error also carries fix and docsUrl, which links to this section. Under sanity dev, the console prints the browser's clone error after this message.

Cause

Messages to a web worker are copied with the structured clone algorithm. Functions, DOM nodes, and class instances with methods can't be copied.

Fix

  • For a view's post, send only data that can be structured-cloned, such as plain objects, arrays, strings, numbers, and dates.
  • For a reply or a value, the Dashboard sent the data. Report the code to Sanity support.

For how views post to a worker, see Talk to your app's worker.

DASH1013: This app's web worker isn't running

The Dashboard reports DASH1013 when one of your app's views posts to a web worker that isn't running.

[DASH1013] The worker "WORKER" isn't running.

WORKER is the name the view posted to.

The view's post() rejects with a MessageBusError whose code is NO_RESPONDER. The error also carries fix and docsUrl, which links to this section.

Cause

The app has no web worker with that name, the worker failed to start, or it's still starting.

Fix

  • Check that the name passed to useWorker matches the name of a defineWebWorker in the app's sanity.cli.ts.
  • Check the console for an earlier error that says the worker failed to load, such as DASH1001 or DASH1017.
  • If the worker is still starting, have it emit workers.message when it's ready, and post again when the view receives that message.

For the subscribe-then-post pattern, see Talk to your app's worker.

DASH1014: This app's web worker isn't answering

The Dashboard reports DASH1014 when one of your app's views posts to a running web worker that doesn't answer posts.

[DASH1014] The worker "WORKER" doesn't answer posts.

WORKER is the worker's name.

The view's post() rejects with a MessageBusError whose code is NO_RESPONDER. The error also carries fix and docsUrl, which links to this section.

Cause

The worker hasn't subscribed to workers.post, or it failed before it could.

Fix

In the worker, subscribe to workers.post on the bus, and answer each message with message.reply or message.reject. If an earlier error in the console says the worker failed, fix that first.

A worker that answers its views:

import type {WebWorkerProps} from '@sanity/sdk/dashboard'

export default ({bus}: WebWorkerProps) => {
  const controller = new AbortController()

  bus.subscribe(
    'workers.post',
    (message) => message.reply(getSnapshot(message.payload)),
    {signal: controller.signal},
  )

  return () => controller.abort()
}

See Run a background service.

DASH1015: This app's web worker ran into an error

The Dashboard reports DASH1015 when one of your app's web workers throws an error in its workers.post handler.

[DASH1015] The worker "WORKER" threw an error while answering a post. The worker doesn't pass the error on.

WORKER is the worker's name.

The view's post() rejects with a MessageBusError whose code is HANDLER_THREW. The error also carries fix and docsUrl, which links to this section.

Cause

The worker's handler threw. The error stays inside the worker, so neither the Dashboard nor the view sees it.

Fix

Find the error in the worker's workers.post handler. Catch it, and log it with console.error, or answer with message.reject(reason) so the view gets the reason.

A handler that passes the reason on:

bus.subscribe(
  'workers.post',
  (message) => {
    try {
      message.reply(getSnapshot(message.payload))
    } catch (error) {
      console.error(error)
      message.reject(error instanceof Error ? error.message : String(error))
    }
  },
  {signal: controller.signal},
)

DASH1016: This app's web worker ran into an error

The Dashboard reports DASH1016 when one of your app's web workers throws an error it doesn't catch.

[DASH1016] The worker "WORKER" reported an error: ERROR

WORKER is the worker's name, and ERROR is the error's message.

Cause

The worker threw. The Dashboard stops a worker that throws, and doesn't restart it. Other workers and views keep running.

Fix

Fix the error in the worker, then reload the page to start the worker again.

See Run a background service.

DASH1017: This app's web worker couldn't start

The Dashboard reports DASH1017 when it can't start one of your app's web workers.

[DASH1017] The Dashboard couldn't start the worker "WORKER".

WORKER is the worker's name.

Cause

The worker's build has no file to start, or the browser refused to start it.

Fix

  • Check that sanity dev or sanity deploy builds the worker without errors, and that the src in its defineWebWorker points at the worker file.
  • If it does, update @sanity/cli to the latest version, and run sanity dev or sanity deploy again.

See Run a background service.

DASH1018: This app can't do that while it's hidden

The Dashboard reports DASH1018 when one of your app's views reads Dashboard state or sends a Dashboard event while it isn't on screen.

[DASH1018] The view "VIEW" isn't on screen, so the Dashboard refused "TOPIC".

VIEW is the app and view, such as content-app/App, and TOPIC is the state or event topic.

The view's emit() or query() call rejects with a MessageBusError that carries fix and docsUrl, which links to this section. A hidden view stops receiving state updates. When it's back on screen, it receives the current values.

Cause

The Dashboard only serves its state and events to views on screen, such as the app in the window or an open panel.

A tile or asset source is on screen while the app or studio showing it is. One from an app built with @sanity/cli older than 8.27.0 can't tell the Dashboard where it's shown, so the Dashboard refuses it even when it's on screen. The same happens to an asset source shown by a studio on an older version of sanity.

Fix

Read Dashboard state and send Dashboard events only while the view is on screen. To keep working in the background, post to your app's web worker with useWorker.

If the view is a tile or asset source that's on screen, update @sanity/cli to 8.27.0 or later, and run sanity dev or sanity deploy again. A studio that shows asset sources also needs the latest version of sanity.

See Talk to your app's worker.

Apps in an iframe and access requests

DASH1019: This app can't act while it's in the background

An app or studio deployed before Dashboard 2.0 runs in an iframe and talks to the Dashboard through Comlink messages. The Dashboard reports DASH1019 when the app sends a message that acts on the Dashboard while the app isn't in the foreground.

[DASH1019] The app "APP_TITLE" is in the background, so the Dashboard refused "MESSAGE_TYPE".

APP_TITLE is the app's title, and MESSAGE_TYPE is the message, such as dashboard/v1/auth/access/request.

The app's request gets the reply {success: false, code: 'DASH1019', message, fix, docsUrl}.

Cause

The Dashboard keeps background apps loaded, but only acts on messages from the app in the foreground.

Fix

Send this message only while the app is in the foreground. If the App SDK sent it on its own, such as a web vital, there's nothing to fix. The Dashboard answers context, token, and favorite queries at any time.

DASH1020: This app's access request is incomplete

An app or studio deployed before Dashboard 2.0 runs in an iframe and talks to the Dashboard through Comlink messages. The Dashboard reports DASH1020 when the app asks for access without saying which resource.

[DASH1020] The app "APP_TITLE" asked for access without a resourceId.
[DASH1020] The app "APP_TITLE" asked for access without a resourceType.

APP_TITLE is the app's title.

The app's request gets the reply {success: false, code: 'DASH1020', message, fix, docsUrl}.

Cause

The dashboard/v1/auth/access/request message needs both resourceType and resourceId.

Fix

Pass both resourceType and resourceId when asking for access, such as resourceType: 'project' with the project's ID.

DASH1021: This access request isn't supported

An app or studio deployed before Dashboard 2.0 runs in an iframe and talks to the Dashboard through Comlink messages. The Dashboard reports DASH1021 when an app asks for access that the access prompt doesn't support.

[DASH1021] The app "APP_TITLE" can't ask for access: canvases and media libraries don't show the access prompt.
[DASH1021] The app "APP_TITLE" asked for access to an application, which the access prompt doesn't support.

APP_TITLE is the app's title.

The app's request gets the reply {success: false, code: 'DASH1021', message, fix, docsUrl}.

Cause

The access prompt only handles organizations and projects, and only for studios and apps.

Fix

Ask for access to an organization or a project, from a studio or an app.

DASH1022: The access prompt wasn't shown

An app or studio deployed before Dashboard 2.0 runs in an iframe and talks to the Dashboard through Comlink messages. The Dashboard reports DASH1022 when an app asks for access but the Dashboard doesn't show the access prompt.

[DASH1022] The access prompt for "APP_TITLE" wasn't shown: you're already a member of project "PROJECT_ID".
[DASH1022] The access prompt for "APP_TITLE" wasn't shown: the app isn't in this organization's application list.
[DASH1022] The access prompt for "APP_TITLE" wasn't shown: the Dashboard hadn't loaded this organization's applications yet.

APP_TITLE is the app's title, or its ID if the Dashboard doesn't know it. PROJECT_ID is the project the app asked for.

The app's request gets {success: false, message: 'The access prompt is not shown for this request'}. The reason is only printed in the console.

Cause

The message ends with the reason.

Fix

  • You're already a member: there's nothing to fix. To change your role, ask an administrator of the project.
  • The app isn't in the application list: open the app from the Dashboard of the organization it's deployed to, or deploy it to this organization with npx sanity@latest deploy.
  • The applications hadn't loaded: ask for access again once the Dashboard has loaded.

DASH1023: You're signed out

An app or studio deployed before Dashboard 2.0 runs in an iframe and talks to the Dashboard through Comlink messages. The Dashboard reports DASH1023 when an app asks for a token while nobody is signed in.

[DASH1023] The app "APP_TITLE" asked for a token, but nobody is signed in to the Dashboard.

APP_TITLE is the app's title.

The app's dashboard/v1/auth/tokens/create request fails, and no token is handed over.

Cause

The user signed out, or their session ended.

Fix

Sign in to the Dashboard again. The app can get a token once someone is signed in.

DASH1024: This favorite couldn't be updated

An app or studio deployed before Dashboard 2.0 runs in an iframe and talks to the Dashboard through Comlink messages. The Dashboard reports DASH1024 when an app tries to update a favorite it can't.

[DASH1024] The app "APP_TITLE" tried to update a favorite under an application resource, which can't hold favorites.
[DASH1024] The app "APP_TITLE" tried to remove a document that isn't a favorite.

APP_TITLE is the app's title.

The app's request gets the reply {success: false, code: 'DASH1024', message, fix, docsUrl}.

Cause

Favorites belong to documents in a studio, dataset, media library, or canvas. A document that isn't a favorite can't be removed.

Fix

Update favorites only for documents in a studio, dataset, media library, or canvas. Check that a document is a favorite before you remove it.

DASH1025: This app tried to open a page the Dashboard doesn't support

An app or studio deployed before Dashboard 2.0 runs in an iframe and talks to the Dashboard through Comlink messages. The Dashboard reports DASH1025 when an app asks to navigate to a resource type it doesn't support, and ignores the navigation.

[DASH1025] The app "APP_TITLE" asked to navigate to a "RESOURCE_TYPE" resource, which the Dashboard doesn't support.

APP_TITLE is the app's title, and RESOURCE_TYPE is the type it asked for.

Cause

The Dashboard can navigate to studio, application, media, and canvas resources.

Fix

Navigate to a studio, application, media, or canvas resource.

Apps built with defineApplication navigate with useNavigate. See Navigate the Dashboard.

DASH1026: This app's history wasn't recorded

An app or studio deployed before Dashboard 2.0 runs in an iframe and talks to the Dashboard through Comlink messages. The Dashboard reports DASH1026 when an app sends a history event for a document without a resource ID, and doesn't record it.

[DASH1026] The app "APP_TITLE" sent a history event for a document without a resource ID, so it wasn't recorded.

APP_TITLE is the app's title.

Cause

The Dashboard records recently viewed documents per resource, so a history event needs the document's resource.

Fix

Include the document's resource, with its ID, in the history event.

DASH1027: This app needs an update

An app or studio deployed before Dashboard 2.0 runs in an iframe and talks to the Dashboard through Comlink messages. The Dashboard reports DASH1027 when an app uses a deprecated message.

[DASH1027] The app asked for "dashboard/v1/bridge/context", which is deprecated.

Cause

dashboard/v1/bridge/context is deprecated. The Dashboard still answers it for now.

Fix

Ask for dashboard/v1/context instead, or update @sanity/sdk-react to the latest version.

Navigation, panels, favorites, and history

DASH1028: This document ID isn't valid

The Dashboard reports DASH1028 when an app sends a favorite update or a history event with a document ID that isn't valid.

[DASH1028] The app "APP_TITLE" sent "DOCUMENT_ID", which isn't a valid document ID.

APP_TITLE is the app's title, and DOCUMENT_ID is the ID it sent.

For a favorite update, the app's request rejects with a MessageBusError whose code is REFUSED. The error also carries fix and docsUrl, which links to this section. A history event is dropped.

Cause

The ID isn't a document _id as it's stored in the dataset.

Fix

Send the document's _id as it's stored in the dataset, such as movie-123 or drafts.movie-123.

DASH1029: This favorite couldn't be saved

The Dashboard reports DASH1029 when an app adds a favorite, but the Dashboard can't find where to save it.

[DASH1029] The Dashboard couldn't find where to save a favorite from the app "APP_TITLE".

APP_TITLE is the app's title, or its ID if the Dashboard doesn't know it.

The app's request rejects with a MessageBusError whose code is REFUSED. The error also carries fix and docsUrl, which links to this section.

Cause

Favorites are saved under a studio workspace, a canvas, or the media library. The favorite didn't match any of them.

Fix

From a studio, set the document's resource id to the workspace's projectId.dataset, and its schemaName to the workspace's name.

DASH1030: Favorites aren't available

The Dashboard reports DASH1030 when an app updates a favorite while favorites aren't available.

[DASH1030] The app "APP_TITLE" updated a favorite, but favorites aren't available: nobody is signed in, or this organization doesn't have favorites.

APP_TITLE is the app's title.

The app's request rejects with a MessageBusError whose code is REFUSED. The error also carries fix and docsUrl, which links to this section.

Cause

Nobody is signed in, or the organization doesn't have favorites.

Fix

Update favorites only while someone is signed in, in an organization that has favorites.

DASH1031: This app's navigation was replaced

The Dashboard reports DASH1031 when an app asks to navigate, but a newer navigation replaces it before it finishes.

[DASH1031] The app "APP_TITLE" asked to navigate to URL, but a newer navigation replaced it.

APP_TITLE is the app's title, and URL is where it asked to go.

Cause

The user, another app, or the same app navigated again before the first navigation finished.

Fix

If the user or another app navigated in the meantime, there's nothing to fix. Otherwise, wait for one navigation to finish before you ask for the next.

See Navigate the Dashboard.

DASH1032: This app tried to leave the Dashboard

The Dashboard reports DASH1032 when an app asks it to navigate to a URL that isn't on the Dashboard's origin, and doesn't navigate.

[DASH1032] The app "APP_TITLE" asked to navigate to URL, which isn't on the Dashboard's origin.

APP_TITLE is the app's title, and URL is where it asked to go.

Cause

Dashboard navigation only moves between pages in the Dashboard.

Fix

Navigate to a path in the Dashboard, such as one built with urlFor. To open another site, use a link that opens in a new tab.

See Navigate the Dashboard.

DASH1033: This app can't be reloaded

The Dashboard reports DASH1033 when an app asks to be reloaded, but wasn't built with defineApplication.

[DASH1033] The app "APP_TITLE" asked the Dashboard to reload it, but only an app built with defineApplication can be reloaded.

APP_TITLE is the app's title.

Cause

Only apps built with defineApplication can ask the Dashboard to reload them.

Fix

Migrate the app to defineApplication, or reload the page instead.

DASH1034: This app's history wasn't recorded

The Dashboard reports DASH1034 when an app sends a history event, but the Dashboard can't find the studio workspace, canvas, or media library it belongs to. The event isn't recorded.

[DASH1034] The app "APP_TITLE" sent a history event, but the Dashboard couldn't find the studio workspace, canvas or media library it belongs to.

APP_TITLE is the app's title.

Cause

The Dashboard records recently viewed documents for studio workspaces, canvases, and the media library.

Fix

Send history events only from a studio, a canvas, or the media library. From a studio, send them while its URL is on the workspace the document belongs to.

DASH1035: This app asked for a panel it didn't define

The Dashboard reports DASH1035 when an app refers to a panel, for example with panels.mode.set, that it doesn't declare. The Dashboard ignores the request.

[DASH1035] The app "APP_TITLE" referred to the panel "PANEL_NAME", which it doesn't declare.

APP_TITLE is the app's title, and PANEL_NAME is the name it used.

Cause

An app can only control panels it declares with definePanelView in sanity.cli.ts.

Fix

  • Declare the panel with definePanelView in the app's sanity.cli.ts, using the same name.
  • Run npx sanity@latest dev or npx sanity@latest deploy again.

The panel's name must match the name your app uses:

import {defineApplication, defineCliConfig, definePanelView} from 'sanity/cli'

export default defineCliConfig({
  app: defineApplication({
    organizationId: 'your-organization-id',
    slug: 'content-activity',
    title: 'Content activity',
    views: [
      definePanelView({name: 'activity', title: 'Activity', src: './src/panel.tsx'}),
    ],
  }),
})

See Open and close panels and Render a panel.

Was this page helpful?

Sanity logosanity.ioAll Systems Operational© Sanity 2026
Change site theme