Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular: Fix isStandaloneComponent check #20295

Merged
merged 1 commit into from
Jan 14, 2023
Merged

Angular: Fix isStandaloneComponent check #20295

merged 1 commit into from
Jan 14, 2023

Conversation

stijnvn
Copy link
Contributor

@stijnvn stijnvn commented Dec 15, 2022

Pipes and directives can also be standalone

Issue:
When you add a standalone directive or pipe as storybook component, you get the error message from Angular that a standalone component can't be declared in any NgModule.

What I did

Changed the isStandaloneComponent check to allow Directive and Pipe.

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

Pipes and directives can also be standalone
@stijnvn stijnvn changed the title Fix isStandaloneComponent check Angular: Fix isStandaloneComponent check Dec 16, 2022
@yannbf yannbf added bug angular ci:daily Run the CI jobs that normally run in the daily job. labels Dec 19, 2022
@IanVS IanVS requested review from a team and kroeder January 9, 2023 14:25
@ndelangen
Copy link
Member

ndelangen commented Jan 14, 2023

@storybookjs/angular could one of you give this a thumbs up?

@valentinpalkovic valentinpalkovic merged commit 24eafb9 into storybookjs:next Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
angular bug ci:daily Run the CI jobs that normally run in the daily job.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants