Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Reproduction repo for issues with strict templates in storybook in Angular

Notifications You must be signed in to change notification settings

pf1gura/storybook-strict-templates

Repository files navigation

Reproduction repo for issues with Storybook and Angular using strictTemplates compiler options.

Link to issue in Storybook repo: storybookjs/storybook#13748

Getting started

  • clone the repo
  • npm install

The issue

  • npm run start will throw error that template property in button.component is possibly undefined
  • npm run storybook will not throw that error (but it should)

Additional context

  • When source of the typing errors are in template files, both compilers behave in the way descibed above.
  • When the same property is is accessed directly in TS files, both Angular and Storybook correctly throw errors. You can see that by changing button.component.ts file. Remove ? on line 11.

About

Reproduction repo for issues with strict templates in storybook in Angular

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published