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

Update CLI docs to troubleshoot issues with yarn pnp/SB6 #334

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/content/configuration/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,9 @@ By default, DNS resolution is handled by the environment system. If you are expe
If you've configured the Chromatic CLI to run with one of the Git environment variables (i.e.,`CHROMATIC_SHA`, `CHROMATIC_BRANCH`, `CHROMATIC_SLUG`), you must configure all three. Otherwise, Chromatic will ignore them when running the build.

</details>
<summary id="chromatic-csf-tools-error">Why do I need to install <code>@storybook/csf-tools</code>?</summary>

If you are using Storybook 6 and Yarn Berry (aka Yarn PnP), you'll need to ensure you have a direct dependency on <code>@storybook/csf-tools</code> in your <code>package.json</code>. This is because Yarn is strict about peer dependencies.

You should ensure the version of <code>@storybook/csf-tools</code> you have is the same as the other <code>@storybook</code> packages you depend on.
</details>
Loading