❤️ vue 报错 There are multiple modules with names that only differ in casing... 报错原因和解决办法

❤️ vue 报错 There are multiple modules with names that only differ in casing… 报错原因和解决办法


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:

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.
使用唯一的写法
————————————————

原因:可能是你的项目文件的父组件使用了驼峰式写法导致

解决办法:父文件名称改成 “ - ” 写法,例如:new-project,进入文件夹,克隆一个新项目出来,然后npm install安装上插件和依赖,最后运行,一般就可以解决。

或者将父文件改成 小写

再次运行,项目正常
❤️ vue 报错 There are multiple modules with names that only differ in casing... 报错原因和解决办法_第1张图片

你可能感兴趣的:(常见问题,Vue,vue.js,javascript,前端)