import { ExternalLink } from 'lucide-react' import Link from 'next/link' import { useRouter } from 'next/router' import type { FallbackProps } from 'react-error-boundary' import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, Button } from 'ui' import { WarningIcon } from 'ui-patterns/Icons/StatusIcons' export const ErrorBoundaryState = ({ error, resetErrorBoundary }: FallbackProps) => { const router = useRouter() const message = `Path name: ${router.pathname}\n\n${error.stack}` const isRemoveChildError = error.message.includes("Failed to execute 'removeChild' on 'Node'") return (
Application error: a client-side exception has occurred (see browser console for more information)
Error: {error.message}
'removeChild' on 'Node' error.