error: Strings must use singlequote等相关问题


如图在项目运行时会发出警告或者error,虽然并不影响运行,但是每次这些报错都会影响运行启动时间,而且看着很难受

解决:在.eslintrc.js中找到报错信息括号里面的内容改成0,

例如:报错:error: Unexpected console statement (no-console) at

那么就在.eslintrc.js文件中找到'no-console': 'xxx',改成'no-console': 'off'或值'no-console': 0


4月15日,星期六,在这里每天60秒读懂世界!

4月14日,星期五,在这里每天60秒读懂世界!

评 论
更换验证码