Building the Docker image fails at the angular-builder stage with:
npm error ERESOLVE could not resolve @angular-builders/jest@21.0.3 requires @angular/compiler@21.2.9
but project has @angular/compiler@21.2.4
Workaround: Adding --legacy-peer-deps to the npm ci command in the Dockerfile resolves the build.
Suggested fix: Pin @angular-builders/jest to a version compatible with the current Angular version, or update Angular packages to 21.2.9 consistently across package.json.
Building the Docker image fails at the angular-builder stage with:
npm error ERESOLVE could not resolve @angular-builders/jest@21.0.3 requires @angular/compiler@21.2.9
but project has @angular/compiler@21.2.4
Workaround: Adding --legacy-peer-deps to the npm ci command in the Dockerfile resolves the build.
Suggested fix: Pin @angular-builders/jest to a version compatible with the current Angular version, or update Angular packages to 21.2.9 consistently across package.json.