getsentry/sentry-capacitor

Compile error: Cannot redeclare block-scoped variable __DEBUG_BUILD__

SerjMalko opened this issue · 1 comments

Environment

Node 18.13.0
macOS Sonoma 14.0

Use sentry libs:

"@sentry/angular-ivy": "7.77.0",
"@sentry/capacitor": "0.14.0",
"@sentry/types": "^7.77.0",

Application libs:

  • Ionic 7.0.7 / Angular 15 / Capacitor 5

2     const __DEBUG_BUILD__: boolean;
            ~~~~~~~~~~~~~~~

  node_modules/@sentry/capacitor/node_modules/@sentry/types/types-ts3.8/globals.d.ts:2:11
    2     const __DEBUG_BUILD__: boolean;
                ~~~~~~~~~~~~~~~
    '__DEBUG_BUILD__' was also declared here.


Error: node_modules/@sentry/capacitor/node_modules/@sentry/types/types-ts3.8/globals.d.ts:2:11 - error TS2451: Cannot redeclare block-scoped variable '__DEBUG_BUILD__'.

2     const __DEBUG_BUILD__: boolean;
            ~~~~~~~~~~~~~~~

  node_modules/@sentry/browser/node_modules/@sentry/types/types-ts3.8/globals.d.ts:2:11
    2     const __DEBUG_BUILD__: boolean;
                ~~~~~~~~~~~~~~~
    '__DEBUG_BUILD__' was also declared here.




✖ Failed to compile.

Same issues:

Use only next versions:
"@sentry/angular-ivy": "7.73.0",
"@sentry/capacitor": "0.14.0",