sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

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

Open nicksrandall opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
  • [X] I have reviewed the documentation https://docs.sentry.io/
  • [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases

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.

nicksrandall avatar Feb 06 '24 17:02 nicksrandall

I got this on my e2e test - something is up https://github.com/getsentry/sentry-javascript/actions/runs/7804351046/job/21287026518?pr=10527

AbhiPrasad avatar Feb 06 '24 18:02 AbhiPrasad

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

solon avatar Feb 06 '24 19:02 solon

Opened https://github.com/getsentry/sentry-javascript/pull/10534 to fix, sorry for the trouble everyone!

AbhiPrasad avatar Feb 06 '24 19:02 AbhiPrasad

We are going to merge in one more fix (https://github.com/getsentry/sentry-javascript/pull/10536), and then we'll cut a patch release with this fix.

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

AbhiPrasad avatar Feb 06 '24 23:02 AbhiPrasad