storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
84.68k stars 9.32k forks source link

[Bug]: @storybook/angular unsupported --stats-json flag #29193

Open fgirardey opened 1 month ago

fgirardey commented 1 month ago

Describe the bug

When Chromatic build storybook it passes additional arguments such as --stats-json.

The --webpackStatsJson parameter has been renamed into --stats-json: https://github.com/chromaui/chromatic-cli/issues/1030

Therefore since this morning all my CI fails.

Example:

> nx run storybook-host-angular:build-storybook --output-dir=/tmp/chromatic--2639-uZkil9x91h0W --stats-json=/tmp/chromatic--2639-uZkil9x91h0W
 NX   'stats-json' is not found in schema
 NX   Running target build-storybook for project storybook-host-angular failed

Reproduction link

https://stackblitz.com/edit/github-a5abiy?file=package.json

Reproduction steps

  1. Go to the above link
  2. Run the command yarn storybook -- --stats-json=./tmp

System

Storybook Environment Info:

  System:
    OS: macOS 15.0
    CPU: (10) arm64 Apple M1 Pro
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.17.0 - ~/.volta/tools/image/node/20.17.0/bin/node
    npm: 10.8.2 - ~/.volta/tools/image/node/20.17.0/bin/npm <----- active
  Browsers:
    Chrome: 129.0.6668.59
    Edge: 129.0.2792.52
    Safari: 18.0
  npmPackages:
    @storybook/addon-essentials: 8.3.2 => 8.3.2 
    @storybook/addon-interactions: 8.3.2 => 8.3.2 
    @storybook/angular: 8.3.2 => 8.3.2 
    @storybook/core-server: 8.3.2 => 8.3.2 
    @storybook/nextjs: 8.3.2 => 8.3.2 
    @storybook/react-vite: 8.3.2 => 8.3.2 
    @storybook/test: 8.3.2 => 8.3.2 
    @storybook/test-runner: 0.18.2 => 0.18.2 
    storybook: 8.3.2 => 8.3.2

Additional context

No response