From f0596e0401ecbca7faceab0f1a625d75d8a8af0d Mon Sep 17 00:00:00 2001 From: Kyohei Fukuda Date: Thu, 13 Mar 2025 17:32:55 +0900 Subject: [PATCH] Update playground/src/index.tsx Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- playground/src/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playground/src/index.tsx b/playground/src/index.tsx index 2acfbc93..7679d4b7 100644 --- a/playground/src/index.tsx +++ b/playground/src/index.tsx @@ -10,7 +10,8 @@ Sentry.init({ dsn: import.meta.env.VITE_SENTRY_DSN || '' }); -const container = document.getElementById('root')!; +const container = document.getElementById('root'); +if (!container) throw new Error('Root element not found'); const root = createRoot(container); root.render(