During Angular update I see this error Error: S does not have a module def (ɵmod property)
I am updating angular 15 to 16
"@angular/cli": "^16.2.16",
The error does not specify which module is causing the problem:
Error: S does not have a module def (ɵmod property)
- Tried to moving all the component, pipes declaration from providers to declration.
- Cleared cache, .anuglar file.
- Re-installed node_modules.