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 SDK are you using?
@sentry/browser via CDN + Feedback integration CDN bundle
SDK Version
8.20.0
Framework Version
N/A
Link to Sentry event
N/A
Reproduction Example/SDK Setup
<script src="https://browser.sentry-cdn.com/8.20.0/bundle.js"></script>
<script src="https://browser.sentry-cdn.com/8.20.0/feedback.js"></script>
<script>
Sentry.init({
dsn: "https://[email protected]/4504689757257728.",
integrations: [
Sentry.feedbackIntegration({
// Additional SDK configuration goes in here, for example:
colorScheme: "system",
}),
],
debug: true,
});
</script>
Steps to Reproduce
- Add non-feedback SDK CDN bundle
- Add standalone/addon feedback integration CDN bundle
- Register
feedbackIntegration
inSentry.init
as instructed in the docs - Observe warning in browser console
Expected Result
Feedback integration should work as expected
Actual Result
This was originally reported by @stayallive in Discord but I can reproduce it as well in a simple test app.
It seems like the feedback addon bundle is missing the feedbackIntegration
export as we only define this export in the browser package to differ between which SDK artifact should get sync (npm) and async (cdn SDK bundle) versions by default.
This causes the shim class on window.Sentry.feedbackIntegration
to not be overwritten by the addon bundle as in the other integrations. Instead, the shim warning is thrown in the console:
You are using feedbackIntegration() even though this bundle does not include feedback.