nuxt启动失败,解决方案

报错:

 @ ./.nuxt/index.js 234:0-66
 @ ./.nuxt/client.js
 @ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

DEPRECATION WARNING on line 446, column 8 of stdin:
Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass.
Use a custom importer to maintain this behaviour. Check your implementations documentation on how to create a custom importer.

谷歌上搜索的结果:
1、postcss-loader问题
2、eslint-loader问题

最终解决方案:
nuxt.config.js中的下面全部注释掉

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

猜你喜欢

转载自blog.csdn.net/mackwang0213/article/details/86569443