https://github.com/cocos-laboratory/typescriptFileConflictDemo
选择微信小程序构建方式进行构建,构建报错。
Build Failed: Compile error: Filename conflict, the module "index.ts" both defined in "assets/Script/store/index.ts.ts" and "assets/Script/store/index.ts.ts
https://github.com/cocos-laboratory/typescriptFileConflictDemo
选择微信小程序构建方式进行构建,构建报错。
Build Failed: Compile error: Filename conflict, the module "index.ts" both defined in "assets/Script/store/index.ts.ts" and "assets/Script/store/index.ts.ts
谢谢反馈,有空查查
只要有名字相同的就会报错
文件不能重名哟
项目中所有的文件都不能重名?这个不合理吧?
嗯,不合理,之后有空会优化掉~
看到很多个之后会xxxxxxxxx
此问题还是存在?
Build Failed: Error: Compile error: Filename conflict, the module "Utils" both defined in "assets/scripts/comm/Utils.ts" and "assets/scripts/game/comm/Utils.ts"
cocos creator 2.4.4
macOS 10.14.6
都2021年了 还没有空?
这问题就离谱
文件名冲突,是游戏名称和所在文件夹中的文件名称吗
都快22年了,这问题居然还存在,神奇
已经22年了,还存在
用户脚本组件名称重复,比如一个a文件夹有一个Test.ts脚本,b文件夹下也有一个Test.ts脚本,就报这错。重复就重复吧,我谅解它,实际操作 如一个节点通过属性编辑器添加组件,用户脚本选择菜单项如果真允许重复的话还要标识(CCC编辑器UI),想想就麻烦。这只是我想到的,肯定还要考虑更多。反正不重复也无关紧要了。
此问题依然存在,2.4.10
此问题又无解决方法?
我也是2.4.4版本的。打包的时候出现同样的问题。
改名字咯,还能咋样
都23年了,还有这个问题,难得