DEV Community

Anil Kumar
Anil Kumar

Posted on • Edited on

Angular upgrade v17 to v19 unit test failures Can't bind to 'ngClass'/'ngModel' since it isn't a known property of

Hi Dev Team,
After upgrading our Angular MFE from v17 to v19, the build succeeds but unit tests fail with:

NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input'.
NG8002: Can't bind to 'ngClass' since it isn't a known property of 'span'.

Notes:

Components are not standalone (standalone: false).
FormsModule / CommonModule are imported at the module level (AppModule).

Could you kindly assist in addressing this issue?

Top comments (0)