Skip to content

Commit ce638fb

Browse files
authored
Fixed Sentry.io not reciving events
1 parent e8f7778 commit ce638fb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/main.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
import "./sentry"; // ⚠️ must be first
12
import React from "react";
23
import { createRoot } from "react-dom/client";
34
import App from "./App";
4-
import * as Sentry from "@sentry/react";
5-
import "./sentry";
5+
import { ErrorBoundary } from "@sentry/react";
66

77
const container = document.getElementById("app")!;
88
const root = createRoot(container);
9-
9+
root.render(<App />);
1010
root.render(
11-
<Sentry.ErrorBoundary fallback={<h2>Something went wrong.</h2>}>
11+
<ErrorBoundary fallback={<h2>Something went wrong.</h2>}>
1212
<App />
13-
</Sentry.ErrorBoundary>
14-
);
13+
</ErrorBoundary>
14+
);

0 commit comments

Comments
 (0)