No error with 'strictTemplates' and missing dependency (component using attribute selector)

This issue has been tracked since 2022-09-07.

Which @angular/* package(s) are the source of the bug?

compiler-cli, compiler

Is this a regression?




  "extends": "./tsconfig.base.json",
  "angularCompilerOptions": {
    "strictTemplates": true,
    "skipTemplateCodegen": true,
    "strictMetadataEmit": true,
    "enableResourceInlining": true

No error:
Screenshot 2022-09-07 at 11 14 29

Screenshot 2022-09-07 at 11 15 26

'strictTemplates' doesn't seem to check inputs / components using attribute selectors. .

In the case above, I get no error - not even runtime! The error only occurs if the template uses a dynamic template.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

I see no error, that's the issue.

Please provide the environment you discovered this bug in (run ng version)

Using Angular 14.

Anything else?

If this is not a bug, please tell me how I can get the build to show errors when a dependancy like this is missing.

JoostK wrote this answer on 2022-09-07

This is a known limitation of type-checking; please see #46351 for details.

More Details About Repo
Owner Name angular
Repo Name angular
Full Name angular/angular
Language TypeScript
Created Date 2014-09-18
Updated Date 2022-10-05
Star Count 84152
Watcher Count 3063
Fork Count 22247
Issue Count 1203


Issue Title Created Date Updated Date