Open saket-r opened 1 year ago
Related to #358
guys, remove this exceeded dependencies for a good being
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...
Faced the same issue here.
Error message: This version of CLI is only compatible with Angular versions ^16.0.0, but Angular version 15.2.9 was found instead.
Updated project to the Angular 15, but npx-build-plus@15.0.0 installs dependencies for Angular 16.
I tried to set required dependencies manually before ngx-build-plus, but it still gets the latest.
UPD:
Workaround with resolutions
doesn't work for npm > 8.3.
Use overrides
instead.
"overrides": {
"@angular-devkit/build-angular": "^15.2.0",
"@angular-devkit/core": "^15.2.0"
}
Getting this error when using
ngx-build-plus: 14.0.0
with Angular 14 projectI found that its because the version range is not fixed to the bound of
14.x
series hence npm downloads@angular-devkit/build-angular
,@angular-devkit/core
etc . of15.x.x
versions locally insidenode_modules
which in turns causes the issueThe correct fix would be to add a range in the
package.json
ofngx-build-plus
something like>= 14.0.0 < 15.0.0
The workaround in the
package.json
of our project we can addresolutions
object which makes surenpm
downloads the required versions for our project