diff --git a/src/main/index.ts b/src/main/index.ts index 5d2e6a430e..71fbd7b8e2 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -60,9 +60,7 @@ import { WeblinkStore } from "../common/weblink-store"; import { ExtensionsStore } from "../extensions/extensions-store"; import { FilesystemProvisionerStore } from "./extension-filesystem"; import { CaptureConsole, Dedupe, Offline } from "@sentry/integrations"; - -// Initializing Sentry -const Sentry = require("@sentry/electron/dist/main"); +import Sentry from "@sentry/electron/dist/main"; Sentry.init({ dsn, diff --git a/src/renderer/lens-app.tsx b/src/renderer/lens-app.tsx index 9ba6236bca..7e855caa18 100644 --- a/src/renderer/lens-app.tsx +++ b/src/renderer/lens-app.tsx @@ -38,9 +38,7 @@ import { IpcRendererNavigationEvents } from "./navigation/events"; import { catalogEntityRegistry } from "./api/catalog-entity-registry"; import { dsn, isProduction } from "../common/vars"; import { CaptureConsole, Dedupe, Offline } from "@sentry/integrations"; - -// Initializing Sentry -const Sentry = require("@sentry/electron/dist/renderer"); +import Sentry from "@sentry/electron/dist/renderer"; Sentry.init({ dsn,