getsentry / sentry-capacitor

The official Sentry SDK for Capacitor

Home Page:https://sentry.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile error: Cannot redeclare block-scoped variable __DEBUG_BUILD__

SerjMalko opened this issue · 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",