Skip to content
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

@sentry/profiling-node: ReferenceError: __DEBUG_BUILD__ is not defined #10525

Closed
3 tasks done
nicksrandall opened this issue Feb 6, 2024 · 4 comments · Fixed by #10534, #11317, #11732, #11752 or #12003
Closed
3 tasks done

Comments

@nicksrandall
Copy link

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.100

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

I can not deploy because a reference to __DEBUG_BUILD__ variable is not defined.

Expected Result

I expect the reference to removed at build time.

Actual Result

Starting package crashes.

@AbhiPrasad
Copy link
Member

@solon
Copy link

solon commented Feb 6, 2024

I'm also experiencing this in a project that just updated to 7.100.0

@AbhiPrasad
Copy link
Member

Opened #10534 to fix, sorry for the trouble everyone!

AbhiPrasad added a commit that referenced this issue Feb 6, 2024
Fixes #10525

When writing the rollup config, we didn't include the debug build
plugin. This led to things not be replaced properly as `profiling-node`
bundles everything into a single file.

This was also causing issues in our CI:
https://github.com/getsentry/sentry-javascript/actions/runs/7804351046/job/21287026518?pr=10527

Backporting this fix to v7 so we can do a `7.100.1` release after we
merge this in.
@AbhiPrasad AbhiPrasad reopened this Feb 6, 2024
@AbhiPrasad
Copy link
Member

We are going to merge in one more fix (#10536), and then we'll cut a patch release with this fix.

Thanks for your patience everyone, sorry again for the inconvenience.

@AbhiPrasad AbhiPrasad assigned AbhiPrasad and unassigned JonasBa Feb 6, 2024
mydea pushed a commit that referenced this issue Feb 7, 2024
Fixes #10525

When writing the rollup config, we didn't include the debug build
plugin. This led to things not be replaced properly as `profiling-node`
bundles everything into a single file.

This was also causing issues in our CI:
https://github.com/getsentry/sentry-javascript/actions/runs/7804351046/job/21287026518?pr=10527

Backporting this fix to v7 so we can do a `7.100.1` release after we
merge this in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment