-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Sentry.moduleMetadataIntegration is not a function when using loader script #13803
Comments
@gilisho I don't think there is a specific reason for that, we should include this in our CDN so you can lazy-load it in you application. I'll put this on our backlog for now, PRs are also welcome of course! For your application I'm afraid the only option right now is to use the integration via npm installation of our SDK. |
@gilisho nice! For general contributing guidelines check https://github.com/getsentry/sentry-javascript/blob/develop/CONTRIBUTING.md So I think the @Lms24 can you maybe chime in for handling v7 updates? |
It seems that I need to make changes and create a PR against |
@gilisho yes once a pr on v7 is merged we can trigger a release |
I made 2 PRs for both v8 and v7. LMK if something is missing. Since my platform is using v7 ATM, #13822 is in a higher priority for me. I'd like to know when this can get released to a new version. Waiting for this to get released. 🙏 |
@gilisho thank you! We'll take a look 👍 |
Thank you! I added the test you requested for #13817. LMK if something else is needed for both PRs. Some concerns have been raised though:
|
Regarding 2., What I would do, is inline the transport code from
|
Alright. |
|
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.119.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
Similarly to #13297, I am using a loader script and
moduleMetadataIntegration
seems to be unavailable when using loader script.I need this integration as advised for micro-frontend environment, and to use that solution I am migrating from Sentry SDK
5.30.0
to7.119.0
, which is already challenging.Any reason to not have a dedicated bundle for this integration like other integration have?
This is a necessity for micro-frontend environment so I really hope there's a way to work around it .
Would appreciate your help in the matter. 🙏
Steps to Reproduce
Use loader script for 7.x version.
Have this script above:
Expected Result
Sentry is initialized successfully.
Actual Result
TypeError: Sentry.moduleMetadataIntegration is not a function
The text was updated successfully, but these errors were encountered: