Modal does not recognize directives

App ionic v7, capacitor 5, angular 15. From a parent page, I invoke a modal form in a child page. Both parent.module and child.module import CommonModule (@angular/common). This solution has always worked, it started having problems of not recognizing ngIf, ngFor… after updating plugins that were mandatory. This problem only occurs on the modal controller, on other pages everything works correctly.
Can you help me?