Closed kaiyoma closed 1 year ago
For anyone else hitting this, here's a .pnpmfile.cjs
workaround:
function readPackage(packageJson, context) {
// Workaround for https://github.com/storybookjs/storybook/issues/16705
if (packageJson.name === "@storybook/addon-docs") {
context.log("Fixing the acorn dependency for @storybook/addon-docs");
packageJson.dependencies.acorn = "^8.5.0";
}
return packageJson;
}
pnpm support is vastly improved in Storybook 7.0. Can you give it a try with pnpx sb@next upgrade --prerelease
and let us know if you're still having problems?
Describe the bug Storybook no longer installs with pnpm due to an invalid peer dependency deep within the tree.
To Reproduce Try to install 6.3.12 of @storybook/addon-docs with pnpm and you get this error:
System
Additional context You can see the problem in the package.json here: https://github.com/storybookjs/storybook/blob/v6.3.12/addons/docs/package.json
The version of
acorn
is not valid.