Reproduction repo for issues with Storybook and Angular using strictTemplates
compiler options.
Link to issue in Storybook repo: storybookjs/storybook#13748
- clone the repo
npm install
npm run start
will throw error thattemplate
property inbutton.component
is possibly undefinednpm run storybook
will not throw that error (but it should)
- 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.