Skip to content

[Bug]: storybook doctor cannot determine the installed version in a nested pnpm catalog workspace #36173

Description

@cursor

Describe the bug

storybook doctor exits before running checks when it is invoked through pnpm dlx from a nested package whose Storybook dependencies use a pnpm catalog.

The tested project has Storybook 10.4.4 installed under ui/vue/node_modules, and its .storybook config is in that package. Doctor still reports:

Unable to determine Storybook version so the command will not proceed

Passing --config-dir .storybook does not help.

Reproduction link

https://github.com/inkline/inkline/tree/b5ce93e7

Reproduction steps

  1. Clone the reproduction at commit b5ce93e7.

  2. Run corepack enable && pnpm install.

  3. Confirm that Storybook is available to the Vue workspace:

    cd ui/vue
    node -e "console.log(require('storybook/package.json').version)"
  4. From ui/vue, run:

    pnpm dlx storybook@10.6.0-beta.0 doctor --config-dir .storybook

Actual: doctor exits because it cannot determine the installed Storybook version.

Expected: doctor finds the Vue workspace's installed Storybook version and runs its checks.

System

Installed Storybook: 10.4.4
Doctor CLI: 10.6.0-beta.0
Node.js 22.22.3
pnpm 11.6.0
Linux
Framework: @storybook/vue3-vite
Workspace dependencies use pnpm catalog:

Additional context

This was found before upgrading the project during Storybook 10.6 release QA.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclipnpmsev:S3Medium priority. Fix within months if possible.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions