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
v7.112 webpack & angular warning: node_modules/@sentry/integrations/esm/offline.js depends on 'localforage'. CommonJS or AMD dependencies can cause optimization bailouts.
#11817
Open
3 tasks done
rubiesonthesky opened this issue
Apr 26, 2024
· 4 comments
This is Angular app, using Angular 16. (And using @sentry/browser)
Update Sentry from v7.111 to v.112
ng build
Expected Result
Not to log any warnings
If I want earlier functionality, do I need to set integrations: [] in init? This was not covered in the release notes.
Actual Result
Warning printed
Warning: <project>/node_modules/@sentry/integrations/esm/offline.js depends on 'localforage'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
The text was updated successfully, but these errors were encountered:
Well nvm we don't vendor offline at all, but I guess webpack complains about it. I think we have to alias the localforage import with a dynamic require, or vendor in localforage to get around this problem.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/browser
SDK Version
7.112.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
This is Angular app, using Angular 16. (And using
@sentry/browser
)ng build
Expected Result
Not to log any warnings
If I want earlier functionality, do I need to set
integrations: []
ininit
? This was not covered in the release notes.Actual Result
Warning printed
The text was updated successfully, but these errors were encountered: