Skip to content

Docker build fails on npm ci due to Angular peer dependency mismatch #163

@darrenwright-dlw

Description

@darrenwright-dlw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions