Closed mecaota closed 1 year ago
The cause of this problem is
I believe there is a problem with both of the above. Here are the solutions I can think of
I think you should do 1st, omit glob install from the installation procedure, and update to the final version of 8 or 9 with no interface changes.
Sorry, I wasn't sure enough. Since the dependency on node-glob-promise will be abolished in the next release of Storybook, the above problem is expected to be resolved, so we will close it.
https://github.com/storybookjs/storybook/commit/ac16a384dee834ac20659b0f3de8ce07cc75e21f
will take a look at this today, thanks
Detail
When I add glob v10.x.x to the parent project as a dependency, node-glob-promise, a grandchild project used through the child project's storybook, hangs with the following error.
Cause
My project uses storybook, which has a dependency on node-glob-promise, but not on glob.
Apart from that, my project also has glob as a devDependency.
Currently,
glob
is required as peerDependencies, so the dependency of the parent project will be adopted. As a result, if the parent project is versioned to glob v10, the breaking change in glob v10 will hang an unrelated node-glob-promise, which in turn hangs the storybook.Shouldn't glob be registered in dependencies instead of peerDependencies?
Also, unrelated to this, I think you can consider supporting v10 to increase the version of glob. The reason why glob v10 hangs is because glob has abolished the default export. https://github.com/isaacs/node-glob/blob/main/changelog.md#1000