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

Compile error: Cannot redeclare block-scoped variable __DEBUG_BUILD__ #493

Closed
SerjMalko opened this issue Oct 31, 2023 · 1 comment
Closed

Comments

@SerjMalko
Copy link

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:

@SerjMalko
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

1 participant