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

Ngx-build-plus can't run on Angular 14 #358

Open
martynas04 opened this issue Nov 22, 2022 · 5 comments
Open

Ngx-build-plus can't run on Angular 14 #358

martynas04 opened this issue Nov 22, 2022 · 5 comments

Comments

@martynas04
Copy link

Hello. Yesterday I've tried to install ngx-build-plus version 14 , but encountered with interesting issue. As I can see in dependancies list we have @schematics/angular and @angular-devkit/build-angular dependancies. Those are not fixed version dependancies but >=14.0.0 . Around 4 days ago Angular released version 15.0.0 of those libraries. So now when You trying to install ngx-build-plus version 14 , it will depend on Anglular 15 because of those dependancies. Can You fix those dependancies and make them fixed version for Angular 14 ? Thanks!
image

@mirzinho
Copy link

faced the same issue, move the "ngx-build-plus": "14.0.0" to the bottom of devDependancies in package.json.

worked like a charm for me...

@tankje
Copy link

tankje commented May 16, 2023

I'm facing the same issue but with Angular 15. I don't want to upgrade to 16 just yet and I'm in a critical situation.

warning "ngx-build-plus > @angular-devkit/[email protected]" has incorrect peer dependency "@angular/compiler-cli@^16.0.0".
warning "ngx-build-plus > @angular-devkit/build-angular > @ngtools/[email protected]" has incorrect peer dependency "@angular/compiler-cli@^16.0.0".

I tried moving "ngx-build-plus": "15.0.0" at the bottom of devDependencies but didn't solve.

@mirzinho
Copy link

I'm facing the same issue but with Angular 15. I don't want to upgrade to 16 just yet and I'm in a critical situation.

warning "ngx-build-plus > @angular-devkit/[email protected]" has incorrect peer dependency "@angular/compiler-cli@^16.0.0".
warning "ngx-build-plus > @angular-devkit/build-angular > @ngtools/[email protected]" has incorrect peer dependency "@angular/compiler-cli@^16.0.0".

I tried moving "ngx-build-plus": "15.0.0" at the bottom of devDependencies but didn't solve.

try using overrides


"overrides": {
    "@angular-devkit/build-angular": "^15.2.0",
    "@angular-devkit/core": "^15.2.0"
  }

@tankje
Copy link

tankje commented May 16, 2023

that's exactly how I ended up making it work. thanks for following up :]

@tsmgodoi
Copy link

If you're using yarn, you should use the following:

  "resolutions": {
    "@angular-devkit/build-angular": "^15.2.0",
    "@angular-devkit/core": "^15.2.0"
  }

It would be nice for the next versions of this package if the devs could change the dependencies to be more restrictive on the major version of Angular.

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

No branches or pull requests

4 participants