8000 No error with 'strictTemplates' and missing dependency (component using attribute selector) · Issue #47369 · angular/angular · GitHub
[go: up one dir, main page]

Skip to content
No error with 'strictTemplates' and missing dependency (component using attribute selector) #47369
Closed as not planned
@etavenerInmarsat

Description

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

compiler-cli, compiler

Is this a regression?

No

Description

TsConfig.json:

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

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

Error:
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0