-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Lock @babel/preset-env version to avoid breakage #8881
Conversation
@babel/preset-env has removed utils.js in version 7.13.0, which is required by polyfills-plugin.js (https://github.com/nuxt/nuxt.js/blob/dev/packages/babel-preset-app/src/polyfills-plugin.js). This fix locks the dependency to 7.12.x.
I've reported the issue to the Babel team (babel/babel#12856) and they say that the utils.js file is not part of their public API, so they removed it. |
Yeah looks like that was just an internal file I believe @JLHwung may do a PR to replace that function, it's also just 2 lines that could be substituted https://github.com/babel/babel/blob/d0b6f0fe0f8e1afb095e5fb419ed9ac56d4edee6/packages/babel-preset-env/src/utils.js#L63-L69. |
Are you guys planning on releasing this soon ? I was about to start a project with nuxt, but it's broken out of the box, the way it is now. Also, if this is going to take long, could you please point me to a solution to get started with it ? |
@hzoo will this also work with npm ? |
I tried adding this to my project (I'm using NPM btw) but I'm still getting this problem, isn't there any other workaround while this PR doesn't make it into the newest version of nuxt ? |
@rallz-dev ah, I just meant that as an example syntax. The issue is with You can probably just do this, specify the version in your deps: "dependencies": {
"core-js": "^3.8.3",
"nuxt": "^2.14.12",
+ "@babel/preset-env": "~7.12.0"
}, |
thanks! that worked! |
It works for me
|
@babel/preset-env has removed utils.js in version 7.13.0, which is required by polyfills-plugin.js (https://github.com/nuxt/nuxt.js/blob/dev/packages/babel-preset-app/src/polyfills-plugin.js). This fix locks the dependency to 7.12.x.
Types of changes
Description
@babel/preset-env has removed utils.js in version 7.13.0, which is required by polyfills-plugin.js (https://github.com/nuxt/nuxt.js/blob/dev/packages/babel-preset-app/src/polyfills-plugin.js). This fix locks the dependency to 7.12.x.
Checklist: