今天写项目时,遇到报错信息如下:

vue报错:There are multiple modules with names that only differ in casing.

 

经过多次排除及参考网上文章,最后找到问题所在

排查原因:
1 、在引用组件时,路径大小写不对也会造成此报错,看例子:
错误写法:

vue报错:There are multiple modules with names that only differ in casing.

 正确写法:

vue报错:There are multiple modules with names that only differ in casing.

 

 2、在组件使用vuex时,引用vuex大小写错误

错误写法:

vue报错:There are multiple modules with names that only differ in casing.

 正确写法:

vue报错:There are multiple modules with names that only differ in casing.

 其实在做项目时,多注意下细节就可以避免这种错误,今天因为这个小错误查问题查了很久,最后才找出问题所在,做个笔记记录下。

 

相关文章:

  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-02
  • 2021-07-25
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
相关资源
相似解决方案