Skip to content

Error: Custom driver not compliant when using minified offline integration #5527

@kevsturman

Description

@kevsturman

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/browser

SDK Version

7.8.0

Framework Version

No response

Link to Sentry event

No response

Steps to Reproduce

Followed the installation instructions to use the offline integration as a CDN

Expected Result

Sentry should be using the offline integration

Actual Result

Instead we get this error when trying to create a new Sentry.Integrations.Offline();

Uncaught (in promise) Error: Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver
    e localforage.js:2496
    defineDriver localforage.js:2496
    n localforage.js:2496
    b.exports<[4]< localforage.js:2496
    i stacktrace.js:85
    n stacktrace.js:85
    <anonymous> stacktrace.js:85
    <anonymous> misc.js:14

However I have managed to get the offline integration working by using the non minified offline.js bundle. I don't get the localForage error and it works as intended.

Note I have also managed to minify offline.js locally using terser. This minfied bundle does not error and works as intended. So I assume there might be something causing a problem during your bundling process?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions