Updated nuxt from 10.7 to latest alpha and got this error.
I've installed all required babel presets also with polyfills and nothing...
My devDependencies:
"devDependencies": {
"babel-eslint": "^7.1.1",
"babel-loader": "^7.0.0",
"babel-polyfill": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"eslint": "^3.15.0",
"eslint-config-standard": "^6.2.1",
"eslint-loader": "^1.6.1",
"eslint-plugin-html": "^2.0.0",
"eslint-plugin-promise": "^3.4.1",
"eslint-plugin-standard": "^2.0.1",
"less": "^2.7.2",
"less-loader": "^4.0.3",
"sass-loader": "^6.0.5"
}
I've fixed this:
so, add to package.json - devDependencies:
"babel-plugin-transform-runtime": "^6.23.0",
and nuxt.config.js:
babel: {
presets: [
'es2015',
'stage-0',
],
plugins: [
'transform-runtime'
]
},
I ran into this issue as well, and this fix solved it. Should the babel
sections of the docs here: https://nuxtjs.org/api/configuration-build be updated with this info?
I'm getting this in red:
[Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
NormalModuleFactory
).output
options tell webpack how to write the compiled files to disk.This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
I've fixed this:
so, add to package.json - devDependencies:
"babel-plugin-transform-runtime": "^6.23.0",
and nuxt.config.js: