manfredsteyer / ngx-build-plus

Extend the Angular CLI's default build behavior without ejecting, e. g. for Angular Elements
1.19k stars 136 forks source link

Angular 17 support #398

Closed Timebutt closed 9 months ago

Timebutt commented 1 year ago

Angular 17.0.0 just released, but upgrading to that new version with ngx-build-plus as a dependency throws this error when running ng serve:

This version of CLI is only compatible with Angular versions ^16.1.0,
but Angular version 17.0.0 was found instead.

Dropping this issue as a go-to reference for others to keep track of the progress!

Edit: For others experiencing this same issue and who can't wait to get started with Angular 17.0.0 you can always override nested peer dependencies and still get everything running. If you are using yarn, you can add the following to your package.json, run yarn install and you should be good to go for now!

"resolutions": {
    "@angular-devkit/build-angular": "^17.0.0"
}

I'm currently testing above approach and my medium-sized Angular application seems to be running just fine!

scottwalter-nice commented 1 year ago

Using "overrides" for NPM also works.

muenchto commented 9 months ago

@scottwalter-nice how exactly did make it work for NPM? Can you post your code? I am kinda stuck..

Timebutt commented 9 months ago

Version 17.0.0 of this package released quite some time ago, you shouldn't need any workaround anymore.