[Assets] [build-script][[Build.Script.Rollup]] Circular dependency: file:///D:/cocogame/BeaonGame/assets/TScript/messageManage/MessageType.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/useinfoManage/User_infoType.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/senceCenter/CenterDataManage.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/messageManage/MessageType.ts [warning][[Build.Script.Rollup]] Circular dependency: file:///D:/cocogame/BeaonGame/assets/TScript/useinfoManage/User_infoType.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/senceCenter/CenterDataManage.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/useinfoManage/User_infoType.ts [warning][[Build.Script.Rollup]] Circular dependency: file:///D:/cocogame/BeaonGame/assets/TScript/messageManage/MessageType.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/useinfoManage/User_infoType.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/senceCenter/CenterDataManage.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/senceCenter/BigWDataC.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/messageManage/MessageType.ts [Assets] [build-script][[Build.Script.Rollup]] Circular dependency: file:///D:/cocogame/BeaonGame/assets/TScript/messageManage/MessageType.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/useinfoManage/User_infoType.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/senceCenter/CenterDataManage.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/messageManage/MessageType.ts [warning][[Build.Script.Rollup]] Circular dependency: file:///D:/cocogame/BeaonGame/assets/TScript/useinfoManage/User_infoType.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/senceCenter/CenterDataManage.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/useinfoManage/User_infoType.ts [warning][[Build.Script.Rollup]] Circular dependency: file:///D:/cocogame/BeaonGame/assets/TScript/messageManage/MessageType.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/useinfoManage/User_infoType.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/senceCenter/CenterDataManage.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/senceCenter/BigWDataC.ts -> file:///D:/cocogame/BeaonGame/assets/TScript/messageManage/MessageType.ts at Logger._logHandler (C:\CocosCreator-v3.7.3\resources\app.asar\node_modules\@base\electron-worker\static\script.ccc:1:531) at Logger.record (C:\CocosCreator-v3.7.3\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1:458) at Object.warn (C:\CocosCreator-v3.7.3\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1:1260) at Object.warn (C:\CocosCreator-v3.7.3\resources\app.asar\builtin\asset-db\dist\worker\console.ccc:1:1412) at NewConsole.warn (C:\CocosCreator-v3.7.3\resources\app.asar\builtin\builder\dist\worker\console.ccc:1:1709) at Socket.<anonymous> (C:\CocosCreator-v3.7.3\resources\app.asar\builtin\builder\dist\worker\worker-pools\sub-process-manager.ccc:1:3499) at Socket.emit (events.js:315:20) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:284:9)
时间: 2023-08-15 12:05:46 浏览: 295
这个错误提示是关于循环依赖的问题,可能是因为你的代码中存在循环依赖的情况。在你的代码中,文件之间的依赖关系是相互交叉的,导致了循环依赖,循环依赖会导致代码的编译错误。
解决这个问题的一个办法是,调整你的代码结构,避免循环依赖。你可以将依赖关系转换成单向依赖关系,或者将循环依赖的部分代码抽离出来,形成一个独立的模块。
另外,为了方便调试,你可以在 Cocos Creator 的控制台中打开调试输出,查看更详细的错误信息,以便更好地排除问题。你可以使用 console.log() 来输出调试信息,也可以使用 debugger 来进行断点调试。
阅读全文