Use // eslint-disable-next-line to ignore the next line.解决办法

╰半橙微兮° 2022-12-21 06:28 224阅读 0赞

npm run dev启动服务的时候,出现了一下报错:

  1. You may use special comments to disable some warnings.
  2. Use // eslint-disable-next-line to ignore the next line.
  3. Use /* eslint-disable */ to ignore all warnings in a file.
  4. 都是因为开启了eslint编码规范检查

解决办法:

1.找到webpack.base.conf.js文件:

找到这行代码注释掉就可以了!!

  1. //...(config.dev.useEslint ? [createLintingRule()] : []),

示例如下:

70

2.npm run dev执行之后就正常运行了!!

发表评论

表情:
评论列表 (有 0 条评论,224人围观)

还没有评论,来说两句吧...

相关阅读