Skip to content
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 + Yarn PnP Windows drive issue #23497

Closed
rawfg opened this issue Jul 18, 2023 · 1 comment · Fixed by #24572
Closed

[Bug]: Storybook + Yarn PnP Windows drive issue #23497

rawfg opened this issue Jul 18, 2023 · 1 comment · Fixed by #24572

Comments

@rawfg
Copy link

rawfg commented Jul 18, 2023

Describe the bug

Storybook crashes when the Yarn PnP cacheFolder is located on a different drive than C. When running yarn storybook the path contains combined C and D drive (C:\Users\rawf\projects\storybook-pnp-issues\D:\yarn\@storybook-manager-npm-7.0.26-ce3e1a67d5-4912726b5d.):

ERR! Error: Failed to load static files, no such directory: C:\Users\rawf\projects\storybook-pnp-issues\D:\yarn\@storybook-manager-npm-7.0.26-ce3e1a67d5-4912726b5d.zip\node_modules\@storybook\manager\static

This issue doesn't occur when the cacheFolder property points to the C drive.

There is a sample project provided.

To Reproduce

No response

System

Environment Info:

  System:
    OS: Windows 10 10.0.22621
    CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor
  Binaries:
    Node: 18.16.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 3.6.1 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 9.5.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1992.0), Chromium (114.0.1823.82)

Additional context

No response

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

Successfully merging a pull request may close this issue.

2 participants