You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I was able to reproduce this locally and found a fix. It will probably be included in the next release. The hint that the problem probably has to do with terser was great and helped a lot. Thank you!
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();
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?The text was updated successfully, but these errors were encountered: