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 when ANR is enabled in a bundled application #11771
Comments
@ollipa are you using ESM or CJS? |
@AbhiPrasad we use CJS. I tried disabling minification but that didn't help. Stack trace changed a bit:
|
Is |
This code: console.log("module--->");
console.log(typeof module.require);
console.log("<---module"); Outputs:
|
Hmm not quite sure what it could be then, @timfish have you seen something like this before? |
No, not sure what's causing this. In the next major, |
I can test this with the new major version when it is out of beta and report back |
If you want, you can already install the latest beta and try it ( |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
7.112.2
Framework Version
No response
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
Esbuild configuration:
Expected Result
No TypeError exception should be thrown when ANR is enabled in a bundled application.
Actual Result
Bundled application throws an exception on application start when ANR is enabled:
Error title in Sentry
TypeError (Object.dynamicRequire(@sentry.src:node.ts)
.Logs from application:
The text was updated successfully, but these errors were encountered: