Skip to content

[Bug]: strictTemplates compiler option in Angular components is ignored #25936

Open
@m-akinc

Description

@m-akinc

Describe the bug

See #13748

As linked from that original bug, there is a comment in another issue that explains this is because strictTemplates is only honored by ahead-of-time (AoT) compilation, and Storybook uses JIT compilation instead.

To Reproduce

https://stackblitz.com/edit/github-aanaeo?file=src%2Fstories%2Fbutton.component.ts
The tsconfig file sets strictTemplates to true, but the invalid size attribute value in the button template is not reported.

System

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions