-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Ionic setup fails out of the box / Compile error: Cannot redeclare block-scoped variable __DEBUG_BUILD__ #394
Comments
This needs to be fixed upstream. #249 |
Adding "@sentry/types": "7.56.0" to the package.json fixed it for me. |
You need to alter your package.json
to
Sentry Capacitor has conflicts if a sibling package reference has a caret symbol. |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
I cant fix the issue my package.json looks like this:
i am using ionic 7.3.2 and capacitore core ^5.0.0 has anyone found a fix for this Bug? |
Nvm I got it working using "@sentry/angular-ivy": "7.54.0", |
Still the same error with the latest versions:
package.json
|
Previously working but now reintroduced with the following in package.json: |
@BillBu Until they'll fix this you can try this:
|
Thanks, but we need to use the 0.13 version because it fixes the issue where iOS is initialized on a background thread, which causes our app to crash. So we have to use that version (or at least get to the point where we can test it to see if it works). I've uninstalled @sentry/angular-ivy and just referencing import * as SentryAngular from '@sentry/angular'; instead of import * as SentryAngular from '@sentry/angular-ivy'; And that compiles okay. Not sure what the effect of that is though and if that causes any other problems. |
The problem is this:
Ref: https://www.npmjs.com/package/@sentry/angular#angular-version-compatibility |
Thanks, having to revert to 0.12 until this DEBUG_BUILD issue is fixed for 0.13. |
If you still are having this issue on the next release please let us know, for the time being I am closing this issue, thanks for opening it! |
Environment
Following the instructions from https://docs.sentry.io/platforms/javascript/guides/capacitor/ionic/
Node 18.16.1
macOS Ventura 13.4.1
Installed global @ionic/[email protected]
Steps to Reproduce
Yields:
sentest.zip
Attached you can find a reproduction project, where after unpacking you just run: npm i && ionic serve
The text was updated successfully, but these errors were encountered: