當 npm run serve 時,遇到以下報錯:
- 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.
解決方法:
在根目錄添加 vue.config.js 文件,並將以下代碼寫入該文件:
module.exports = {
chainWebpack: config => {
config.module.rules.delete('eslint');
}
}
再次運行 解決~