storybookjs / storybook

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

[Bug]: missing props in controls tab when using pnpm #29340

Open MarcusKuehn opened 2 weeks ago

MarcusKuehn commented 2 weeks ago

Describe the bug

We are trying to create a story for a custom themed mui Button but are unable to get any ButtonProps from mui in the Story.

Reproduction link

https://codesandbox.io/p/devbox/syq2z7

Reproduction steps

  1. create nextJs project
  2. install mui
  3. install storybook
  4. follow setup guide for mui -> https://storybook.js.org/recipes/@mui/material
  5. create story for mui component
  6. enable autodocs
  7. start storybook
  8. -> mui component story does not show mui component propertys

System

Storybook Environment Info:

System: OS: macOS 15.0.1 CPU: (12) arm64 Apple M2 Pro Shell: 5.9 - /bin/zsh Binaries: Node: 20.15.0 - ~/Library/pnpm/node npm: 10.7.0 - ~/Library/pnpm/npm pnpm: 9.11.0 - ~/Library/pnpm/pnpm <----- active Browsers: Chrome: 129.0.6668.91 Edge: 129.0.2792.89 Safari: 18.0.1 npmPackages: @storybook/addon-essentials: ^8.3.5 => 8.3.5 @storybook/addon-interactions: ^8.3.5 => 8.3.5 @storybook/addon-links: ^8.3.5 => 8.3.5 @storybook/addon-onboarding: ^8.3.5 => 8.3.5 @storybook/addon-themes: ^8.3.5 => 8.3.5 @storybook/blocks: ^8.3.5 => 8.3.5 @storybook/nextjs: ^8.3.5 => 8.3.5 @storybook/react: ^8.3.5 => 8.3.5 @storybook/test: ^8.3.5 => 8.3.5 eslint-plugin-storybook: ^0.9.0 => 0.9.0 storybook: ^8.3.5 => 8.3.5

Additional context

No response

helpIneedAname commented 3 days ago

Up

MarcusKuehn commented 3 days ago

We could identify the Problem, it looks like pnpm is causing this issue npm and bun work fine. We did not test it with yarn or dino yet.