You may use special comments to disable some warnings.报错解决

错误信息

You may use special comments to disable some warnings.报错解决

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.

解决方法

找到build目录下的webpack.base.conf.js文件,注释掉其中的与有关的eslint规则即可。
You may use special comments to disable some warnings.报错解决
You may use special comments to disable some warnings.报错解决

 module: {   
   rules: [      
   // ...(config.dev.useEslint ? [createLintingRule()] : []),      // 注释掉这一行
   {       
     test: /\.vue$/,        
     loader: 'vue-loader',        
     options: vueLoaderConfig     
   },

相关文章: