diff --git a/apps/web/src/main.tsx b/apps/web/src/main.tsx index 5d70ca3..4ea4efc 100644 --- a/apps/web/src/main.tsx +++ b/apps/web/src/main.tsx @@ -12,7 +12,12 @@ initAnalytics() const queryClient = new QueryClient() -createRoot(document.getElementById("root")!).render( +const rootElement = document.getElementById("root") +if (!rootElement) { + throw new Error('Élément racine "#root" introuvable') +} + +createRoot(rootElement).render(