npm warnings about glob, rimraf and inflight, all caused by a too old version of jscodeshift in Storybook's dependencies
#34437
Replies: 1 comment
|
Your dependency chain analysis is correct. These are just npm warnings though — For now you can suppress the warnings with: or add to The actual fix has to come from the Storybook team bumping jscodeshift. If the warnings bother you in CI, you can also use {
"overrides": {
"jscodeshift": "17.1.2"
}
}Test your Storybook codemods after if you go that route. |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Hello,
My project has
"@storybook/cli": "^10.3.3"in itspackage.json. I did a freshnpm installafter removing bothpackage-lock.jsonandnode_modules, and I am getting the following warnings about dependencies that are either not supported anymore, leaking memory, or containing vulnerabilities:so I did a
npm list -ato inspect the tree and see which dependencies of my project are importinginflight@1.0.6,rimraf@2.6.3, andglob@7.2.3.It turns out that:
inflight@1.0.6is imported byglob@7.2.3glob@7.2.3is imported byrimraf@2.6.3rimraf@2.6.3is imported bytemp@0.8.4temp@0.8.4is imported byjscodeshift@0.15.2jscodeshift@0.15.2is imported by@storybook/cli@10.3.3.So it seems that the fact that
@storybook/cli@10.3.3importsjscodeshift@0.15.2is the root cause of the warnings.The latest version of
jscodeshiftdoes not importtempanymore, which can be seen here in the currentpackage.jsonofjscodeshift: https://github.com/facebook/jscodeshift/blob/main/package.jsonSo, do you plan upgrading your dependency on
jscodeshiftto the latest version, which could potentially fix all these issues at once?Additional information
No response
Create a reproduction
No response
All reactions