vue项目警告There are multiple modules with names that only differ in casing


执行npm run dev后出现了警告提示:

warning  in ./src/components/Public/yearSelectCell.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:      //使用唯一的写法,对比下面这些模块的标识符:
* F:\路径。。。。。。

问题在于大小写没有区分:

import yearSelectCell from "@/components/public/yearSelectCell" //年份选择

在linux下是严格区分大小写,而windows不区分。所以上面问题导致在服务器上打包失败,而修改过来后就ok啦!

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 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 modul There are multiple modules with names that only differ in casing. 问题的一种解决方法 Vue2报错Already included file name 'xxx' differs from file name 'xxx' only in casing的解决方法 在vue项目出现These relative modules were not found: VUE项目启动报错: core-js/modules/. … vue开发的项目中遇到的警告,报错,配置项目文件等合集(长期更新) Hint: make sure your test modules/packages have valid Python names. Pytest报错 vue 项目启动报错:Cannot assign to read only property 'exports' of object '#' [WDS] Warnings while compiling. vue 项目运行控制台输出太多警告信息
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM