-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Initialization fails with bundled CommonJS #16402
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
Comments
Assigning to @getsentry/support for routing ⏲️ |
Routing to @getsentry/product-owners-ingestion-and-filtering for triage ⏲️ |
@mydea i'm not sure if this is something for your team? |
Hey, this is a JS SDK issue, moving it to sentry-javascript! |
If the content is bundled, they may need to configure things as external to work - instrumentation only works for external dependencies, not bundles one, as of now, sadly :/ So you'll need to make e.g. pg external. Can you try of that works? |
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
User issue:
Initializing Sentry works when running it in a dev environment, but fails to initialize when using a CommonJS bundled file.
------------First 2 lines of CommonJs bundled server file server.js-------------------
---------- contents of instrument.js ----------------
instrument.js is being required at the top of the main file, in the beginning of the application
logs in ticket #152026
Expected Result
Sentry should initialize successfully and send events
Actual Result
Sentry does not initialize
Product Area
Ingestion and Filtering
Link
No response
DSN
No response
Version
No response
The text was updated successfully, but these errors were encountered: