We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54510ef commit a6eafedCopy full SHA for a6eafed
2 files changed
index.html
@@ -1,2 +1,4 @@
1
-<!-- In index.html -->
2
-<script type="module" src="/src/main.tsx"></script>
+<body>
+ <div id="app"></div>
3
+ <script type="module" src="/src/main.tsx"></script>
4
+</body>
src/main.tsx
@@ -2,9 +2,11 @@ import React from "react";
import { createRoot } from "react-dom/client";
import { ErrorBoundary } from "@sentry/react";
import App from "./App";
5
-import "./sentry"; // ⚠️ must be imported first
+import "./sentry";
6
7
const container = document.getElementById("app")!;
8
+if (!container) throw new Error("No root container found");
9
+
10
const root = createRoot(container);
11
12
root.render(
0 commit comments