-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
CLI: Cannot find core-js when run with npx #8209
Comments
@ndelangen any core-js wisdom you can add here? |
For me this happens update Works like charm :)
|
Running the codemod with version
|
I can confirm this works with I get the same error like mentioned in the issue but with
|
Can confirm, I have the same issue as @leomelzer. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
I'm getting this with @storybook/[email protected]
|
FYI, this happens for me wether I run cli from npx or install it globally. |
Also, I wasn't able to get it to work either by calling jscodeshift directly or by downgrading @storybook/cli to v5.2.0. This is the error I got when running jscodeshift directly:
|
This is so weird, the cli package depends on core-js itself.. why wouldn't it be available? Might there be some deeper down dependency that has core-js v2 as a peerDependency or something? |
So https://github.com/ariporad/pirates uses babel preset env for node 6, but doesn't which injects core-js dependencies into their dist, but they dont directly depend on core-js.. I'm not sure how to fix this on our end. We use core-js v3. They seem to implicitly depend on core-js v2, which causes the error |
I see 3 potential solutions: 1: They add core-js v2 as a dependency (seems most logical to me) Regarding option 3: I've already made a webpack plugin that does this to the best of it's abilities, but it's a temp hot-fix, not meant to be kept around forever. |
More investigating.. After an upgrade of many dependencies, I'm able to find just 1 reference to But like a good citizen I suspect this issue might be resolved in the latest version. I just tried running:
and it worked for me 🎉 I don't know what i can do to further resolve this. If anyone experiences this problem with the latest version of the CLI, please re=open. |
Yes, I just tried it again and it works fine. |
Describe the bug
I am trying to change my stories from the storiesof-format to the new CSF. Unfortunately the migrator fails when importing a polyfill.
To Reproduce
Steps to reproduce the behavior:
npx -p @storybook/cli sb migrate storiesof-to-csf --glob "**/*.stories.js"
and 2 more of those errors.
Expected behavior
The stories should be transformed into CSF.
System:
Additional context
This is a
vue-cli@^3
project withvue-cli-plugin-storybook
.When using the global
@storybook/cli
instead ofnpx
the result is the same error. When installing it locally, there are a lot more errors, probably because the project itself usescore-js@^2
still.The text was updated successfully, but these errors were encountered: