-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Bug]: Storybook loads stories from node_modules with pnpm #25118
Comments
Until the issue is fixed, could you try the following workaround?: Instead of Please try to use the following glob: I would appreciate any feedback |
Thanks for taking a look! Unfortunately, updating the glob pattern as suggested doesn't seem to fix it, however it does seem to change something. I updated https://github.com/Methuselah96/storybook-pnpm-issue with that change. Now it's saying that it can't find any stories, despite there being stories in I also used that updated pattern for my real-life project, and it still crashes with an OOM error. Let me know if you need anything else! |
For more context, in my real-life project, if I narrow the glob patterns to be the |
I suspect that this is a windows-specific bug since #22873 was only tested on mac |
Ah webpack 🤦♂️ |
Describe the bug
When using pnpm, Stoybook seems to be loading stories from
node_modules
when thestories
patterns could includenode_modules
of subdirectories. This seems to be the same issue as #18907 and #19446, but it does not seem to be fixed as of7.6.3
and goes against the behavior described in #22873. In a large monorepo with lots of dependencies, this crashes the dev server and build with an out of memory error (but that's harder to reproduce):To Reproduce
pnpm install
pnpm storybook
node_modules
:System
Additional context
No response
The text was updated successfully, but these errors were encountered: