Skip to content

Commit a6eafed

Browse files
committed
Fixed website not rendering
1 parent 54510ef commit a6eafed

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
<!-- In index.html -->
2-
<script type="module" src="/src/main.tsx"></script>
1+
<body>
2+
<div id="app"></div>
3+
<script type="module" src="/src/main.tsx"></script>
4+
</body>

src/main.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ import React from "react";
22
import { createRoot } from "react-dom/client";
33
import { ErrorBoundary } from "@sentry/react";
44
import App from "./App";
5-
import "./sentry"; // ⚠️ must be imported first
5+
import "./sentry";
66

77
const container = document.getElementById("app")!;
8+
if (!container) throw new Error("No root container found");
9+
810
const root = createRoot(container);
911

1012
root.render(

0 commit comments

Comments
 (0)