-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
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