ref(feedback): Use debug instead of logger#17027
Conversation
There was a problem hiding this comment.
Bug: Incorrect `debug` Usage Causes Errors
The debug function from @sentry/core was incorrectly used as an object with an error method (e.g., debug.error(...)), replacing previous logger.error(...) calls. As debug is a function, not an object, this causes a TypeScript compilation error and, in debug builds, a runtime TypeError: debug.error is not a function. This issue breaks feedback-related flows in files like Form.tsx and core/integration.ts.
packages/feedback/src/modal/components/Form.tsx#L128-L135
sentry-javascript/packages/feedback/src/modal/components/Form.tsx
Lines 128 to 135 in b8a82ed
packages/feedback/src/core/integration.ts#L193-L247
sentry-javascript/packages/feedback/src/core/integration.ts
Lines 193 to 247 in b8a82ed
Was this report helpful? Give feedback by reacting with 👍 or 👎
resolves #16949