sentry-capacitor: Peer Dependencies npm install --save @Sentry/capacitor Fails
Environment
Angular 16: I can successfully download @sentry/angular-ivy Capacitor 5: Iconic 7: npm 9.5.1 node 18.16
Steps to Reproduce
- Following the installation guide for angular/capacitor set up
npm install --save @sentry/capacitor @sentry/angular-ivyornpm install --save @sentry/capacitorornpm install --save @sentry/capacitor --force- installation fails
Expected Result
The npm install would be successful
Actual Result
install fails (see screenshots)
Current Dependencies: “dependencies”: { “@angular/common”: “^16.0.3”, “@angular/core”: “^16.0.3”, “@angular/forms”: “^16.0.3”, “@angular/platform-browser”: “^16.0.3”, “@angular/platform-browser-dynamic”: “^16.0.3”, “@angular/router”: “^16.0.3”, “@awesome-cordova-plugins/app-version”: “^6.3.0”, “@capacitor-community/firebase-analytics”: “^5.0.1”, “@capacitor/android”: “^5.0.4”, “@capacitor/app”: “^5.0.2”, “@capacitor/camera”: “^5.0.2”, “@capacitor/core”: “^5.0.5”, “@capacitor/haptics”: “^5.0.2”, “@capacitor/ios”: “^5.0.4”, “@capacitor/keyboard”: “^5.0.2”, “@capacitor/status-bar”: “^5.0.2”, “@ionic/angular”: “^7.0.9”, “@ionic/pwa-elements”: “^3.1.1”, “@ionic/storage-angular”: “^4.0.0”, “@trapezedev/configure”: “^7.0.10”, “capacitor-native-settings”: “^5.0.0”, “cordova-plugin-app-version”: “^0.1.14”, “envsub”: “^4.1.0”, “ionicons”: “^7.1.1”, “ngx-mask”: “^16.0.8”, “rxjs”: “^7.8.1”, “swiper”: “^8.4.6”, “tslib”: “^2.5.2”, “zone.js”: “^0.13.0” }, “devDependencies”: { “@angular-devkit/build-angular”: “^16.0.3”, “@angular-eslint/builder”: “^16.0.3”, “@angular-eslint/eslint-plugin”: “^16.0.3”, “@angular-eslint/eslint-plugin-template”: “^16.0.3”, “@angular-eslint/template-parser”: “^16.0.3”, “@angular/cli”: “^16.0.3”, “@angular/compiler”: “*”, “@angular/compiler-cli”: “^16.0.3”, “@angular/language-service”: “^16.0.3”, “@capacitor/cli”: “^5.0.6-nightly-20230627T150701.0”, “@ionic/angular-toolkit”: “^9.0.0”, “@ionic/cli”: “^7.1.1”, “@types/jasmine”: “^4.3.2”, “@types/jasminewd2”: “^2.0.10”, “@types/node”: “^20.2.5”, “@typescript-eslint/eslint-plugin”: “^5.59.8”, “@typescript-eslint/parser”: “^5.59.8”, “eslint”: “^8.41.0”, “eslint-plugin-import”: “^2.27.5”, “eslint-plugin-jsdoc”: “^45.0.0”, “eslint-plugin-prefer-arrow”: “^1.2.3”, “jasmine-core”: “^4.6.0”, “jasmine-spec-reporter”: “^7.0.0”, “karma”: “^6.4.2”, “karma-chrome-launcher”: “^3.2.0”, “karma-coverage”: “^2.2.0”, “karma-coverage-istanbul-reporter”: “^3.0.3”, “karma-jasmine”: “^5.1.0”, “karma-jasmine-html-reporter”: “^2.0.0”, “prettier”: “^2.8.8”, “protractor”: “^7.0.0”, “ts-node”: “^10.9.1”, “typescript”: “^5.0.4” },
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 15 (5 by maintainers)
I’m also no longer able to reproduce this issue, even with the original reporter’s command. Maybe something was fixed on the npm side? I have since upgraded npm to
v10.1.0where before I was running version 9, I think.For the people still running into this issue, https://github.com/getsentry/sentry-capacitor/issues/405#issuecomment-1725161083 should be a viable workaround.
It builds with
@sentry/angular-ivy. With those lines added to yourpackage.json, the commandnpm install --save @sentry/capacitor @sentry/angular-ivyshould succeed.