diff --git a/packages/integrations/src/offline.ts b/packages/integrations/src/offline.ts index 51bcb6b80d73..dac92c0e5619 100644 --- a/packages/integrations/src/offline.ts +++ b/packages/integrations/src/offline.ts @@ -1,7 +1,6 @@ import { Event, EventProcessor, Hub, Integration } from '@sentry/types'; import { getGlobalObject, logger, uuid4 } from '@sentry/utils'; -// @ts-ignore: Module '"localforage"' has no default export. -import localforage from 'localforage'; +import * as localForage from 'localforage'; /** * cache offline errors and send when connected @@ -43,7 +42,7 @@ export class Offline implements Integration { public constructor(options: { maxStoredEvents?: number } = {}) { this.global = getGlobalObject(); this.maxStoredEvents = options.maxStoredEvents || 30; // set a reasonable default - this.offlineEventStore = localforage.createInstance({ + this.offlineEventStore = localForage.createInstance({ name: 'sentry/offlineEventStore', });