Skip to content

Commit

Permalink
Merge pull request #209 from TheSoftwareHouse/fix/fix-sentry-type-errors
Browse files Browse the repository at this point in the history
fix: use sentry integrations from @sentry/browser package
  • Loading branch information
tokerson authored Jul 3, 2024
2 parents 5ad5f88 + 0201399 commit 96f7ccc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 70 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-peaches-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-starter-boilerplate": patch
---

fix sentry type errors & import integrations from correct package
67 changes: 0 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
},
"dependencies": {
"@sentry/browser": "8.8.0",
"@sentry/integrations": "7.110.0",
"@tanstack/react-query": "5.45.1",
"@tanstack/react-query-devtools": "5.45.1",
"@tanstack/react-router": "1.29.2",
Expand Down
10 changes: 8 additions & 2 deletions src/integrations/logger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { init, captureException, captureMessage, browserTracingIntegration } from '@sentry/browser';
import { httpClientIntegration, captureConsoleIntegration } from '@sentry/integrations';
import {
init,
captureException,
captureMessage,
browserTracingIntegration,
httpClientIntegration,
captureConsoleIntegration,
} from '@sentry/browser';

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

0 comments on commit 96f7ccc

Please sign in to comment.