Skip to content

Commit 0201399

Browse files
committed
fix: use sentry integrations from @sentry/browser package
1 parent 5ad5f88 commit 0201399

File tree

4 files changed

+13
-70
lines changed

4 files changed

+13
-70
lines changed

.changeset/stale-peaches-sniff.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-starter-boilerplate": patch
3+
---
4+
5+
fix sentry type errors & import integrations from correct package

package-lock.json

Lines changed: 0 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
},
5353
"dependencies": {
5454
"@sentry/browser": "8.8.0",
55-
"@sentry/integrations": "7.110.0",
5655
"@tanstack/react-query": "5.45.1",
5756
"@tanstack/react-query-devtools": "5.45.1",
5857
"@tanstack/react-router": "1.29.2",

src/integrations/logger.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
import { init, captureException, captureMessage, browserTracingIntegration } from '@sentry/browser';
2-
import { httpClientIntegration, captureConsoleIntegration } from '@sentry/integrations';
1+
import {
2+
init,
3+
captureException,
4+
captureMessage,
5+
browserTracingIntegration,
6+
httpClientIntegration,
7+
captureConsoleIntegration,
8+
} from '@sentry/browser';
39

410
type LogLevel = 'error' | 'info' | 'warning';
511
type Logger = Record<LogLevel, (message: string | Error) => void> & Record<string, unknown>;

0 commit comments

Comments
 (0)