Solution: Remove the if condition statement from nuxt.config.js.

if (isDev && isClient) {
        config.module.rules.push({
          enforce: 'pre',
          test: /\.(js|vue)$/,
          loader: 'eslint-loader',
          exclude: /(node_modules)/
        })
      }
Copy the code

Then save the file and recompile it.

npm run dev
Copy the code

End scatter flower! Be sure to check the documentation next time.