selemxmn / ngx-print

:printer: A plug n' play Angular (2++) library to print your stuff
MIT License
168 stars 59 forks source link

Error in install ngx-print with angular 15.0.1 #169

Closed yordanisperez closed 1 year ago

yordanisperez commented 1 year ago

Is your feature request related to a problem? Please describe. npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @angular/flex-layout@14.0.0-beta.40 npm ERR! Found: @angular/cdk@15.0.1 npm ERR! node_modules/@angular/cdk npm ERR! peer @angular/cdk@"^15.0.1" from @angular-material-components/datetime-picker@9.0.0 npm ERR! node_modules/@angular-material-components/datetime-picker npm ERR! @angular-material-components/datetime-picker@"^9.0.0" from the root project npm ERR! peer @angular/cdk@"15.0.1" from @angular/material@15.0.1 npm ERR! node_modules/@angular/material npm ERR! peer @angular/material@"^15.0.1" from @angular-material-components/datetime-picker@9.0.0 npm ERR! node_modules/@angular-material-components/datetime-picker npm ERR! @angular-material-components/datetime-picker@"^9.0.0" from the root project npm ERR! @angular/material@"^15.0.1" from the root project npm ERR! 1 more (the root project) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/cdk@"^14.0.0" from @angular/flex-layout@14.0.0-beta.40 npm ERR! node_modules/@angular/flex-layout npm ERR! @angular/flex-layout@"^14.0.0-beta.40" from the root project npm ERR! npm ERR! Conflicting peer dependency: @angular/cdk@14.2.7 npm ERR! node_modules/@angular/cdk npm ERR! peer @angular/cdk@"^14.0.0" from @angular/flex-layout@14.0.0-beta.40 npm ERR! node_modules/@angular/flex-layout npm ERR! @angular/flex-layout@"^14.0.0-beta.40" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! npm ERR! For a full report see: Describe the solution you'd like I need can install in my project Angular.

package Json.

{
  "name": "cliente-elbando",
  "version": "1.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build --configuration production",
    "watch": "ng build --watch --configuration development",
    "test": "ng test"
  },
  "private": true,
  "dependencies": {
    "@angular-material-components/datetime-picker": "^9.0.0",
    "@angular/animations": "~15.0.2",
    "@angular/cdk": "^15.0.1",
    "@angular/common": "~15.0.2",
    "@angular/compiler": "~15.0.2",
    "@angular/core": "~15.0.2",
    "@angular/flex-layout": "^14.0.0-beta.40",
    "@angular/forms": "~15.0.2",
    "@angular/material": "^15.0.1",
    "@angular/platform-browser": "~15.0.2",
    "@angular/platform-browser-dynamic": "~15.0.2",
    "@angular/router": "~15.0.2",
    "leaflet": "^1.8.0",
    "ng-recaptcha": "^10.0.0",
    "ngx-scanner-qrcode": "^1.0.38",
    "rxjs": "~7.5.7",
    "sweetalert2": "^11.4.4",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~15.0.2",
    "@angular/cli": "~15.0.2",
    "@angular/compiler-cli": "~15.0.2",
    "@types/jasmine": "~4.3.0",
    "@types/leaflet": "^1.7.10",
    "@types/node": "^18.8.4",
    "jasmine-core": "~4.4.0",
    "karma": "~6.4.1",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.2.0",
    "karma-jasmine": "~5.1.0",
    "karma-jasmine-html-reporter": "~2.0.0",
    "typescript": "~4.8.4"
  }
}

Thanks for your job

yordanisperez commented 1 year ago

I are solve. Only uninstall "@angular/flex-layout": "^14.0.0-beta.40", is deprecated. and update "ng-recaptcha": "^10.0.0", to "ng-recaptcha": "^11.0.0", and ready.