Closed drupsys closed 5 months ago
I've been having this same issue since updating to storybook v8. All of my repos are configured with:
Yarn v3.8.2 or greater Using Yarn PnP Using Storybook v8.0.6 or greater Windows 10 Node v20
Builds will throw the exact error above unless I manually delete the node_modules folder.
I have set up 4+ repos with this configuration that have the same issue, so it seems deterministic to me.
Do you a have a reproduction repo you can share? If not, can you create one? Go to https://storybook.new or see repro docs. Thank you! 🙏
Hi there! Thank you for opening this issue, but it has been marked as stale
because we need more information to move forward. Could you please provide us with the requested reproduction or additional information that could help us better understand the problem? We'd love to resolve this issue, but we can't do it without your help!
I'm afraid we need to close this issue for now, since we can't take any action without the requested reproduction or additional information. But please don't hesitate to open a new issue if the problem persists – we're always happy to help. Thanks so much for your understanding.
Describe the bug
Running
yarn storybook dev --no-open --host 0.0.0.0 --port 80
throws the following error during startup ifnode_modules/.cache
is present(storybook is started in a container so ports and host should be fine)
If I delete
node_modules
folder and start storybook then no error is thrown.To Reproduce
Not been able to reproduce this with fresh setup and I cannot publish original repo, this error is happening in a monorepo with yarn pnp setup.
System
Additional context
package json dependencies
.yarnrc.yml packageExtensions
.storybook/main.ts
.storybook/preview.tsx