In tsconfig.app.json if you provide the 'fullTemplateTypeCheck' option in compiler options you can see all the invalid references in html files of your project at the time of project build.
"angularCompilerOptions": {"enableIvy": true,"fullTemplateTypeCheck": true
}