vueJS 解決VSCode 中 報錯"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."


 在bulid > webpack.base.conf.js 中,注釋或刪除掉: module -> rules 關於eslint的部分

 module: {
    rules: [
      // ...(config.dev.useEslint ? [createLintingRule()] : []),   //注釋或刪除
      {
        test: /\.vue$/,
        loader: 'vue-loader',
        options: vueLoaderConfig
      },
  ]
}

然后 npm run dev 就能啟動了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM