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
storybook production build breaks with use-lockfile-v6
#5976
Comments
How to reproduce it? |
In the end I was able to upgrade to storybook v7 beta and there it works without a problem. Anyways, since not everyone will be able to do that, I have created a minimal repo: https://github.com/mcmxcdev/pnpm-nx-storybook-issue
|
error report: reducing: // package.json
{
"dependencies": {
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@storybook/builder-webpack5": "6.5.15",
"@storybook/core-server": "6.5.15",
"@storybook/manager-webpack5": "6.5.15"
}
} then It seems And with |
I see 2 possible solutions. One is to replace () with []. It fixes storybook. But there's a chance that some other tool won't like it. Another solution would be to escape () in directory names. For instance, replace them with + or _. We already use the these chars in these directories, so it should be OK. But it will be less readable. |
I think |
pnpm version: 7.25.1
Code to reproduce the issue:
We recently updated to the new
use-lockfile-v6
format and everything works fine except our storybook production build.This is the stacktrace:
I have also reported this issue on storybookjs/storybook#20673 since I am not sure which repo has to make changes here to make it work.
Expected behavior:
Storybook production build should work same as before
Actual behavior:
The build runs into "file not found" issues with favicon.ico and then probably other files as well.
Additional information:
node -v
prints: 18.12.1The text was updated successfully, but these errors were encountered: