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
{{ message }}
Repository navigation
TypeError: Class extends value undefined is not a constructor or null (HttpInstrumentation) #16575
The issue can be reproduced from the 9.3 version. It works properly on the 9.2 one.
Just use the provided package.json
npm i
npm start
Boom
I really tried to find this issue without success. Really sorry if it is a duplicate.
This one seems so obvious I really think you already have it.
Expected Result
Just the log of the Sentry instance.
Actual Result
export class HttpInstrumentation extends InstrumentationBase<HttpInstrumentationConfig> {
^
TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (/Users/shudrum/sentry-issue/node_modules/@opentelemetry/instrumentation-http/src/http.ts:97:42)
at loadCJSModule (node:internal/modules/esm/translators:161:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:196:7)
at ModuleJob.runSync (node:internal/modules/esm/module_job:258:17)
at require (node:internal/modules/esm/translators:146:9)
at Object.<anonymous> (/Users/shudrum/sentry-issue/node_modules/@opentelemetry/instrumentation-http/src/index.ts:17:1)
at loadCJSModule (node:internal/modules/esm/translators:161:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:196:7)
at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
OK, I closed it because I though I made a mistaka with the type: "module" of the package.json.
But I'm pretty sure I should keep it, also, as it worked properly on 7.x / 8.x and <= 9.2, I prefer to keep the issue.
Well, this just completely broke multiple of our apps, and we can't deploy to production. I'd love to know which version to downgrade to. This is a pretty urgent problem for our company.
Thanks for raising this. This seems to be an issue with tsx, I would assume, as we have a whole bunch of tests covering that stuff generally works. It is obviously still not good and something we want to fix, we'll look into this!
Can you confirm that this happens after updating the SDK to the latest version (released today 9.29.0)? My hunch is that if we get three reports within an hour after the release it's likely related to the latest version but can't say for sure yet.
Assuming you all use tsx (which I still don't have confirmation for), I'm 99% sure this is an issue with the latest tsx version, caused by privatenumber/tsx@c188268
@Shudrum if I change nothing in your repro but pin the tsx version to 4.20.1 (instead of the latest 4.20.2) I no longer get this error.
This was also reported in privatenumber/tsx#727 and it seems like the tsx maintainer is working on reverting the change. So I think we can consider this handled.
Though I'll take this as an opportunity to also add a tsx e2e test application to our repo, just to have a little bit more coverage on this end.
Activity
Shudrum commentedon Jun 13, 2025
OK, I closed it because I though I made a mistaka with the
type: "module"of thepackage.json.But I'm pretty sure I should keep it, also, as it worked properly on 7.x / 8.x and <= 9.2, I prefer to keep the issue.
SimonPrague commentedon Jun 13, 2025
Well, this just completely broke multiple of our apps, and we can't deploy to production. I'd love to know which version to downgrade to. This is a pretty urgent problem for our company.
nathankirk91 commentedon Jun 13, 2025
Having the same issue, any help would be much appreciated.
Thanks
SimonPrague commentedon Jun 13, 2025
Not sure of there is a way to mark something as CRITICAL. But this definitely seems like that situation!
Error tracking software completely bricks production applications ... ups
mydea commentedon Jun 13, 2025
Thanks for raising this. This seems to be an issue with tsx, I would assume, as we have a whole bunch of tests covering that stuff generally works. It is obviously still not good and something we want to fix, we'll look into this!
Lms24 commentedon Jun 13, 2025
@SimonPrague @nathankirk91 are you also using
tsxlike in the issue or another build/runtime setup?Can you confirm that this happens after updating the SDK to the latest version (released today 9.29.0)? My hunch is that if we get three reports within an hour after the release it's likely related to the latest version but can't say for sure yet.
Shudrum commentedon Jun 13, 2025
Hello.
I confirm that the issue is still reproductible on
9.29.0.Lms24 commentedon Jun 13, 2025
Assuming you all use
tsx(which I still don't have confirmation for), I'm 99% sure this is an issue with the latesttsxversion, caused by privatenumber/tsx@c188268@Shudrum if I change nothing in your repro but pin the
tsxversion to4.20.1(instead of the latest4.20.2) I no longer get this error.Lms24 commentedon Jun 13, 2025
This was also reported in privatenumber/tsx#727 and it seems like the tsx maintainer is working on reverting the change. So I think we can consider this handled.
Though I'll take this as an opportunity to also add a
tsxe2e test application to our repo, just to have a little bit more coverage on this end.Lms24 commentedon Jun 13, 2025
Can confirm that everything seems to work again with
tsx@4.20.3which was released a couple of minutes ago.Shudrum commentedon Jun 13, 2025
Hello!
I really didn't though to test a lower TSX version :/ sorry
But I confirm :
4.20.1✅4.20.2🔴4.20.3✅Super thank you @Lms24!