diff --git a/packages/sanity/src/core/error/ErrorLogger.tsx b/packages/sanity/src/core/error/ErrorLogger.tsx index 7affa9f11fd..87dbfb75a50 100644 --- a/packages/sanity/src/core/error/ErrorLogger.tsx +++ b/packages/sanity/src/core/error/ErrorLogger.tsx @@ -64,7 +64,7 @@ function isKnownError(err: Error): boolean { return true } - if ('isViteDevServerStoppedError' in err && err.isViteDevServerStoppedError) { + if ('ViteDevServerStoppedError' in err && err.ViteDevServerStoppedError) { return true } diff --git a/packages/sanity/src/core/studio/StudioErrorBoundary.tsx b/packages/sanity/src/core/studio/StudioErrorBoundary.tsx index 07d7831ef5f..32b0de92a00 100644 --- a/packages/sanity/src/core/studio/StudioErrorBoundary.tsx +++ b/packages/sanity/src/core/studio/StudioErrorBoundary.tsx @@ -98,7 +98,7 @@ export const StudioErrorBoundary: ComponentType = ({ return } - if (error && 'isDevServerStoppedError' in error && error.isDevServerStoppedError) { + if (error && 'ViteDevServerStoppedError' in error && error.ViteDevServerStoppedError) { return }