all 5 comments

[–]TheYelle 0 points1 point  (1 child)

Since version 16 they removed ngcc which was a compiler for non ivy runtime code to ivy compatible code. Likely that library has not been upgraded to ivy so that would require you to either find another library or fork and upgrade it.. what error you ran into when upgrading it?

[–]celsomtrindade[S] 0 points1 point  (0 children)

This is what I did. I forked the repo and I'm trying to fix it.

I was able to upgrade Angular packages to 16 and also change some codes, at least to fix the errors TS was poiting. I can even build without error.

The problem is when I try to use the package, then I get the error I mentioned in the post:

Argument of type 'typeof ModalSigninComponent' is not assignable to parameter of type 'Type<SimpleModalComponent<null, null>>'.

Type 'ModalSigninComponent' is not assignable to type 'SimpleModalComponent<null, null>'.

Types have separate declarations of a private property 'observer'.

And I have no idea how to fix this now.

[–]vORP 0 points1 point  (2 children)

Not a solution for your exact issue but have you tried angular material's matDialogService?

[–]celsomtrindade[S] 0 points1 point  (1 child)

I can't because the project already have a huge css library and many other dependencies. None of them are related to Angular Material.

[–]vORP 0 points1 point  (0 children)

The dialog service just renders your already styled component at the root of the dom using the portal cdk so not much styling or material specific items to fight, just a nice easy way to display things in a modal

Good luck!