error Component name School should always be multi-word vuemulti-word-component-names

error Component name “School” should always be multi-word vue/multi-word-component-names

报错截图

在这里插入图片描述

解决方法

1.关闭语法检查

在这里插入图片描述

/*关闭语法检查*/
  lintOnSave: false,

然后重新编译即可npm run serve

2.设置组件名称为两个单词

比如设置School为MySchool

然后重新编译即可npm run serve

参考文献:

run serve

参考文献:

https://blog.csdn.net/AtlantisPrincess/article/details/125133804

猜你喜欢

转载自blog.csdn.net/weixin_45572279/article/details/129734471