dev has been deprecated in build.extend(), please use isDev
と出る
ググると、v1.0.0のリリースノートでDeprecateになっている。
v1.0.0以前にstarter-templateからインストールしてバージョンを上げた場合、 nuxt.config.js
を以下のように修正する必要がある。
/*
** Run ESLint on save
*/
- extend (config, ctx) {
- if (ctx.dev && ctx.isClient) {
+ extend (config, { isDev, isClient }) {
+ if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
参考: https://github.com/nuxt-community/starter-template/commit/a2d4038ef3ca1965cfce08d245b47936f305afd7