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

报错截图

error Component name School should always be multi-word vuemulti-word-component-names_第1张图片

解决方法

1.关闭语法检查

error Component name School should always be multi-word vuemulti-word-component-names_第2张图片

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

然后重新编译即可npm run serve

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

比如设置School为MySchool

然后重新编译即可npm run serve

参考文献:

run serve

参考文献:

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

你可能感兴趣的:(vue,word,javascript,vue.js)