大致原因是由于安装了vetur和eslintrc导致的冲突
vetur:会把代码中的单引号(’ ')全部转换为双引号(" “) 也会在每一行后面添加分号(;)
eslintrc.js 会把代码中的单引号(’ ')全部转换为双引号(” ") 也会在每一行后面添加分号(;)
导致vue运行时报错
error Strings must use singlequote quotes
error Unexpected trailing comma comma-dangle
error Extra semicolon semi
vscode vue 报错 error Strings must use singlequote quotes 解决办法
解决办法
https://blog.csdn.net/mslmhl/article/details/105835747

相关文章:

  • 2021-07-31
  • 2021-06-17
  • 2021-06-07
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
猜你喜欢
  • 2021-11-08
  • 2022-12-23
  • 2021-11-23
  • 2021-05-23
  • 2021-12-23
  • 2022-12-23
相关资源
相似解决方案