cypress-storybook
cypress-storybook copied to clipboard
Error with angular storybook host component
I have an issue when not using the component directly in storybook configuration but when using it inside a template:
I reproduce it on my fork: https://github.com/jogelin/cypress-storybook/tree/issue_with_host_component
I didn't investigate yet but this is an Angular error. If you don't know Angular, @NgModule.entryComponents
was used to declare components that could be generated dynamically, on-demand like dialog or snack bar.
This is deprecated since Angular 10 with Ivy but it seems Storybook doesn't use Ivy.
It is using an AppComponent
inside @storybook/angular
when we use a template approach and it seems it needs to be declared in the entryComponents
when using your implementation of component loading....I don't know why because I never had to do that in my storybook