doubleyong
管理员
管理员
  • 最后登录2026-05-25
  • 发帖数1198
  • 最爱沙发
  • 喜欢达人
  • 原创写手
  • 社区居民
  • 忠实会员
阅读:6407回复:0

[vue]vue 警告:There are multiple modules with names that only differ in casing.

楼主#
更多 发布于:2019-05-29 14:24
在VUE 项目开发过程中,一直报如下警告:
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:

原因:
这是引用组件时,路径大小写不对导致的。比如:
如果Paginate组件是大写的,那么这样用会错:
import Paginate from '~/components/paginate.vue';
需要这样写:
import Paginate from '~/components/Paginate.vue';


参考 :https://www.cnblogs.com/chaoyong/p/8340681.html
知识需要管理,知识需要分享
游客


返回顶部

公众号

公众号