Skip to content

Angular, once compiled, doesn’t provide compatibility between different patch levels? #1073

@michaelhunziker

Description

@michaelhunziker

For which library do you need help?

module-federation

Question

Hi everyone,

I just read this #645 (comment) from @rainerhahnekamp mentioning that Angular, once compiled, doesn’t provide compatibility between different patch levels.

Am I understanding correctly that we should use fixed versions (no ^ or ~) in all our projects?

shell package.json:
"@angular/common": "20.3.3",
"@angular/core": "20.3.3"

microfrontend1 package.json:
"@angular/common": "20.3.3",
"@angular/core": "20.3.3"

microfrontend2 package.json:
"@angular/common": "20.3.3",
"@angular/core": "20.3.3"

microfrontend3 package.json:
"@angular/common": "^20.3.3", // PROBLEM! in package-lock.json we could e.g. have 20.3.15!
"@angular/core": "^20.3.3"

We have multiple teams working on multiple microfrontends, so keeping every version of the shared libraries perfectly aligned at the patch level would require a significant amount of coordination.

Thanks for the clarification!

Cheers,
Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions