-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
corejs-upgrade-webpack-plugin causing problems #7445
Comments
Strange, i think it might be because they use babel-polyfill, which libraries really shouldn't. I'm hoping we can fix this on their end. Thanks for the repro, I'll take a look if nothing comes out of the fetch-mock. Looking at the error, that module has been completely removed from core-js (my guess is all platforms now support that api and no polyfill is required anymore). Really confirms to me, fetch-mock should be upgraded. |
I am using module.exports = ({ config }) => {
config.plugins = config.plugins.filter(
p => String(p.resourceRegExp) !== '/core-js/'
);
return config;
}; |
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 still seeing this with storybook 5.1.11, core-js 3.2.1, and fetch-mock 7.3.9. |
@jdelStrother is that workaround I mentioned didn't work for you? |
It does, but seems like this ought to be fixed rather than hacked around. |
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! |
This happens with any module that depends on |
Fun fact: this issue is the second link in Google for "corejs-upgrade-webpack-plugin" |
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! |
OMG... My branch was called
🤦♂ |
oof :( |
@ndelangen we just ran into this issue as well. The problem ist that In this specific case corejs version 2 files are required that do not exist in version 3. This will always fail therefore. But even if the file itself would exist, it's unclear if the exported functionality would still work the same. I therefore highly recommend to deprecate the I am happy to open a pull request myself, if that could resolve the issue faster. |
@BridgeAR We can remove it in 6.0, I'd be happy to accept a PR on the next branch! |
@ndelangen why wouldn't you take this for v5 as well? |
@probablyup v6 is coming up in the next 1-2 mo. we don't have the bandwidth to make potentially destabilizing changes to existing versions and iterate the product at the same time. our process:
we typically don't accept PRs directly to |
Describe the bug
If you import fetch-mock (which relies on core-js v2), its core-js imports fail. If I hack storybook to remove the corejs-upgrade-webpack-plugin, everything seems to work fine.
Sample errors:
To Reproduce
Steps to reproduce the behavior:
yarn storybook
Expected behavior
Storybook successfully builds
System:
Additional context
Fun fact: Naming your project "core-js-demo" is also a great way to break your storybook build since it matches the /core-js/ regexp that the plugin uses...
The text was updated successfully, but these errors were encountered: