You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
19.2.3
Description
We have an internal Component Library which is based on Angular Material.
Since Angular Material Version 19.2.4 and up to19.2.10 some of our Services are a created wrong, the included import with a concrete hash in the .d.ts which obviously tends to compile time problems if the user does not also have the exact Angular Material Version in his project.
I created a “minimal” repo, based on our library project structure.
I also saw other Issues with a similar problem (also with 19.2.4), but it appears that this is different because it still happens with the current version of Angular Material.
DerAlbertCom
changed the title
bug(COMPONENT): TITLE
bug(MATERIAL): Hashed Imports are generated in a .d.ts for a Library based on Angular Material >= 19.2.4
Apr 21, 2025
I can confirm that the update from 19.2.3 to 19.2.4 has also been causing different issues in the module federation environment that I am currently working with. Before 19.2.4, everything works as expected, but after updating to 19.2.4 or higher, I start getting tons of NG0912 warnings like so:
While I don't know much about the inner workings of this repo, I would suspect that something with the hashed imports are throwing off the library sharing capabilities of nx's module federation. I made an issue on their repo yesterday because I thought the problem was on their end, but it seems like this is more likely the core issue.
Is this a regression?
The previous version in which this bug was not present was
19.2.3
Description
We have an internal Component Library which is based on Angular Material.
Since Angular Material Version 19.2.4 and up to19.2.10 some of our Services are a created wrong, the included import with a concrete hash in the
.d.ts
which obviously tends to compile time problems if the user does not also have the exact Angular Material Version in his project.I created a “minimal” repo, based on our library project structure.
I also saw other Issues with a similar problem (also with 19.2.4), but it appears that this is different because it still happens with the current version of Angular Material.
Reproduction
https://stackblitz.com/~/github.com/DerAlbertCom/AngularMaterialBug
Reproduce
Expected Behavior
Creating a d.ts file with the general import, without the hash, like in all Version before 19.2.4.
Actual Behavior
The d.ts file is generated with the Hash in the import, this happens since Version 19.2.4
Environment
The text was updated successfully, but these errors were encountered: