一、Eslint报错:2 errors and 0 warnings potentially fixable with the `--fix` option
在创建项目的时候,选择了linter/Formatter,eslint-config-standar,标准的eslint标准,
项目中会生成.eslintrc.js、.editorconfig
这种只要隐藏.eslintrc.js中的’@vue/standard’就行了,如下图:
二、箭头函数的this指向
箭头函数会改变this指向。
三、Vue文件style中lang不配置,报错
如果lang不配置,就会报错。
<style lang='' scoped>
或者
<style lang="scss" scoped >
四、Css样式缺少;,报错SassError: Illegal nesting: Only properties may be nested beneath properties.
第二张图正确后,a就有颜色了,也不报错了。
。。。。后续有问题再添加