Skip to content

Angular: Storybook fails with unknown option silent#33736

Merged
valentinpalkovic merged 2 commits intostorybookjs:nextfrom
tanujbhaud:fix/angular-silent-flag
Feb 2, 2026
Merged

Angular: Storybook fails with unknown option silent#33736
valentinpalkovic merged 2 commits intostorybookjs:nextfrom
tanujbhaud:fix/angular-silent-flag

Conversation

@tanujbhaud
Copy link
Copy Markdown
Contributor

@tanujbhaud tanujbhaud commented Feb 1, 2026

Closes #33502

Excludes Angular projects from receiving the --silent flag in init command as ng run does not support it.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed initialization errors when starting Storybook development mode for Angular projects. An unsupported command-line argument was previously passed to the Angular CLI, causing failures during startup.

✏️ Tip: You can customize this high-level summary in your review settings.

@dosubot
Copy link
Copy Markdown

dosubot bot commented Feb 1, 2026

Related Documentation

No published documentation to review for changes on this repository.

Write your first living document

How did I do? Any feedback?  Join Discord

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 1, 2026

📝 Walkthrough

Walkthrough

The runStorybookDev function in the Storybook creation utility now excludes the --silent npm flag when the project type is Angular, as the Angular CLI does not recognize this argument.

Changes

Cohort / File(s) Summary
Silent flag logic fix for Angular
code/lib/create-storybook/src/initiate.ts
Modified conditional to prevent --silent flag from being passed to npm in Angular projects, resolving incompatibility with Angular CLI.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@tanujbhaud tanujbhaud force-pushed the fix/angular-silent-flag branch from de28d99 to c13b371 Compare February 1, 2026 23:30
@valentinpalkovic valentinpalkovic changed the title fix: Angular Storybook fails with unknown option silent Angular: Storybook fails with unknown option silent Feb 2, 2026
@valentinpalkovic valentinpalkovic self-assigned this Feb 2, 2026
@valentinpalkovic valentinpalkovic moved this to Needs Discussion in Core Team Projects Feb 2, 2026
@valentinpalkovic valentinpalkovic moved this from Needs Discussion to Empathy Queue (prioritized) in Core Team Projects Feb 2, 2026
@valentinpalkovic valentinpalkovic moved this from Empathy Queue (prioritized) to In Progress in Core Team Projects Feb 2, 2026
@valentinpalkovic valentinpalkovic merged commit 05b32ef into storybookjs:next Feb 2, 2026
111 of 114 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Core Team Projects Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug]: Angular - Storybook fails to initialize with unknown option "silent"

2 participants