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 }}
This repository was archived by the owner on Oct 29, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 29, 2026. It is now read-only.
Still investigating, but my builds are all failing with:
"message": "getHubFromCarrier(...).isOlderThan is not a function",
"stack": [
"TypeError: getHubFromCarrier(...).isOlderThan is not a function",
" at getGlobalHub (file:///home/runner/work/monorepo/monorepo/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs:6631:33)",
" at getCurrentHub (file:///home/runner/work/monorepo/monorepo/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs:6612:10)",
" at getClient (file:///home/runner/work/monorepo/monorepo/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs:4967:10)",
" at hasTracingEnabled (file:///home/runner/work/monorepo/monorepo/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs:6843:18)",
" at sampleTransaction (file:///home/runner/work/monorepo/monorepo/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs:7938:8)",
" at Hub._startTransaction (file:///home/runner/work/monorepo/monorepo/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs:8095:17)",
" at Hub._callExtensionMethod (file:///home/runner/work/monorepo/monorepo/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs:6555:40)",
" at Hub.startTransaction (file:///home/runner/work/monorepo/monorepo/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs:6423:25)",
" at _callee$ (file:///home/runner/work/monorepo/monorepo/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs:14342:25)",
" at tryCatch (file:///home/runner/work/monorepo/monorepo/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs:90:17)"
]
@Lms24 awesome, thank you, I'll look for that in a bit!
@lforst I tried setting that but it still seems to be throwing the same error (but maybe less...?)
Additionally, I just noticed this in the error output:
{
"id": "import-is-undefined",
"location": {
"column": 44,
"file": "lambdas/user-account-setup-handler/user-account-setup-handler.ts?sentryProxyModule=true",
"length": 7,
"line": 4,
"lineText": " export default OriginalModule.default;",
"namespace": "",
"suggestion": ""
},
"notes": [],
"pluginName": "",
"text": "Import \"default\" will always be undefined because there is no matching export in \"lambdas/user-account-setup-handler/user-account-setup-handler.ts\""
}
I didn't think the Sentry bundler is actually changing the entry point for the lambda. If so, this is hugely concerning because none of my lambdas use "default" as the named entry point for AWS.
Can either of you help me understand what is happening there?
As a side note, I just patched my local code and everything seems to be working. I also inspected the output and confirmed that my named exports still exist. The output contains the following:
Nothing is ever assigned to user_account_details_handler_default other than void 0. So my assumption would be it is something you look for in the uploaded sourcemaps to Sentry? Either way, no big deal, more so curious now... 😄
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Activity
jd-carroll commentedon May 22, 2024
I've been trying to wrap my head around this and cannot seem to be able to.
If I debug locally (I get the same error) and inspecting the
registryobject it looks like:I'm not sure where
AsyncContextStackwould be coming from, but that definitely looks wrong.Let's go ahead and assume this is something I am doing wrong. Where would I even start?
jd-carroll commentedon May 22, 2024
Just for tracking purposes, the
AsyncContextStackis a Sentry construct. I'm no longer assuming that this is an issue with my code.Additionally, the
AsyncContextStackis created here:https://github.com/getsentry/sentry-javascript/blob/4420844943418a1bc23a6ccad70401d68a8c94a4/packages/core/src/asyncContext/stackStrategy.ts#L133-L148
lforst commentedon May 22, 2024
Can you try setting
telemetry: false? Thanks!Lms24 commentedon May 22, 2024
Hey @jd-carroll - this is most likely fixed by getsentry/sentry-javascript#12160 which we're gonna release today.
jd-carroll commentedon May 22, 2024
@Lms24 awesome, thank you, I'll look for that in a bit!
@lforst I tried setting that but it still seems to be throwing the same error (but maybe less...?)
Additionally, I just noticed this in the error output:
I didn't think the Sentry bundler is actually changing the entry point for the lambda. If so, this is hugely concerning because none of my lambdas use "default" as the named entry point for AWS.
Can either of you help me understand what is happening there?
jd-carroll commentedon May 22, 2024
As a side note, I just patched my local code and everything seems to be working. I also inspected the output and confirmed that my named exports still exist. The output contains the following:
Nothing is ever assigned to
user_account_details_handler_defaultother thanvoid 0. So my assumption would be it is something you look for in the uploaded sourcemaps to Sentry? Either way, no big deal, more so curious now... 😄jd-carroll commentedon May 22, 2024
@Lms24 It does not appear this was fixed in @sentry/[email protected] (fyi)
Lms24 commentedon May 22, 2024
Yup, sorry about that, we had to close the PR in favor of a better fix
getsantry commentedon Jul 2, 2024
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label
Waiting for: Community, I will leave it alone ... forever!"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀