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.报错解决_第1张图片

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.报错解决_第2张图片
You may use special comments to disable some warnings.报错解决_第3张图片

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

你可能感兴趣的:(前端开发,vue)