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
loadPartialConfig() throws Cannot destructure property showIgnoredFiles
of 'undefined' or 'null' on v7.12.0
#12194
Comments
Hey @MwumLi! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite." |
为什么 github v7.12.1 上面的源码已经修复了这个问题, https://github.com/babel/babel/blob/v7.12.1/packages/babel-core/src/config/partial.js#L73-L81, 但是在 npm 上的 v7.12.1 的包上代码没有更改 😪 |
I reverted the commit that introduced the regression and released it as |
@nicolo-ribaudo |
Sorry my mistake, this isn't fixed yet. I'll prepare a PR; as a workaround you can pass |
@nicolo-ribaudo I can't change it, because that |
showIgnoredFiles
of 'undefined' or 'null'showIgnoredFiles
of 'undefined' or 'null' on v7.12.0
Fixed in 7.12.3! |
vue 项目构建报错
项目之前是好的, 但是最近构建报错, 如下:
经过排查, 发现是
@babel/core
最新的版本 ^7.x.x 版本中发布了不兼容的变更根据语义话版本号的描述, ^7.x.x 版本的发布应该是兼容性功能增强, 但是因为 API 的变更导致以前直接使用
babel.loadPartialConfig()
的库会报错, 比如项目使用了@vue/cli-plugin-babel@4.1.1
, 他的实现如下这一切的问题是因为 babel 并没有安装 samver 语义话版本造成, 期待对
loadPartialConfig
做一下兼容修复, 重新发布版本The text was updated successfully, but these errors were encountered: