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
-
Clone the reproduction at commit b5ce93e7.
-
Run corepack enable && pnpm install.
-
Confirm that Storybook is available to the Vue workspace:
cd ui/vue
node -e "console.log(require('storybook/package.json').version)"
-
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.
Describe the bug
storybook doctorexits before running checks when it is invoked throughpnpm dlxfrom a nested package whose Storybook dependencies use a pnpm catalog.The tested project has Storybook
10.4.4installed underui/vue/node_modules, and its.storybookconfig is in that package. Doctor still reports:Passing
--config-dir .storybookdoes not help.Reproduction link
https://github.com/inkline/inkline/tree/b5ce93e7
Reproduction steps
Clone the reproduction at commit
b5ce93e7.Run
corepack enable && pnpm install.Confirm that Storybook is available to the Vue workspace:
From
ui/vue, run: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
Additional context
This was found before upgrading the project during Storybook 10.6 release QA.