https://qx9nql3y49.sse.codesandbox.io/
Just follow latest nuxtjs installation procedure.
nuxtjs running
client build failed
Exactly same problem. Cant create
npx create-nuxt-app
I'm having the same problem here.
I'm having this problem as well, both on new projects using npx create-nuxt-app, but also on fresh installs of my existing nuxt app.
It seems that a fix has been merge https://github.com/babel/babel/pull/9711
npm install --save-dev @babel/preset-env
fixed my latest project
Here I was thinking it was just me. I chose a hell of a time to decide to try Nuxt heh.
@scottyadean this was my first instinct, but it didn't solve the problem.
@vsergiu93 after applying the fix, I'm still receiving isPluginRequired is not a function. I managed to get a function by importing directly from @babel/preset-env/lib/filter-items but this yielded an error of no property "ie".
A little lost.
@kristremblay All I did was to make sure I have updated the version of @babel/preset-env package to 7.4.1 then I ran yarn upgrade
@vsergiu93 Just deleted node_modules, updated package.json, and installed from scratch. Works now, thanks :)
Thanks folks for reporting this issue and closing this as there seems a bad release from babel caused that and there is workaround for this issue.
@pi0 It might be helpful to rollback https://github.com/nuxt/nuxt.js/commit/f5f1471bc5d205064e4c10e9c956ba6e88721975 until this gets addressed appropriately. I imagine that it will be resolved in the following days so requiring developers to add the workaround seems more detrimental than helpful.
@dasZGFz downgrading in package.json does not simply fixes this issue unless using ~7.3.4 constraint.
@pi0 That commit also alters the yarn.lock file. As far as I'm aware, that's the breaking commit so I would assume reverting it would fix the issue.
It's entirely possible that I'm overlooking something but I don't think I am.
The yarn.lock is NOT published with npm packages but only used for nuxt development and CI tests. What babel version users get installed with fresh create-nuxt-app is the latest version of babel that this constraint allows which is 7.4.0.
Please follow-up other answers by cleaning up your project's lock file and installing again.
The With useBuiltIns option, required direct setting of corejs option warning is going to be resolved by #5291. (Thanks to @clarkdo)
@pi0 Ah I see. Thank you for clarifying. What I was looking for was locking the babel version, not the yarn.lock file itself.
Glad to see a PR already emerge aiming to resolve this issue. Thanks for the hard work!
Resolved by #5291 :relaxed:
For the users who are using yarn and need a quick fix before next Nuxt release:
Add resolutions in package.json, then remove yarn.lock and run yarn install
"resolutions": {
"@babel/preset-env": "7.3.1"
}
Babel 7.4.0 support is resolved with v2.5.1. You can now safely remove the resolutions field.
Most helpful comment
It seems that a fix has been merge https://github.com/babel/babel/pull/9711