cocoscreator3.8.3软链编辑器编译报错问题

assets目录下有个文件夹core是软链的外部文件夹,如果报core文件夹复制过来不会报错,能正确识别。

@编辑器官方,cocos 2.x编辑器没有问题,能正确识别软链文件

反馈时请提供以下信息:

/EventDispatcher.ts跟/Cocos3DGame.ts是同一个目录里面的文件,报找不到Module
升级最新的版本编辑器也一样报错。

  • Creator 版本: 3.8.3

  • 目标平台: 编辑器

  • 重现方式:必现
    [Scene] Error: Error: Module “./EventDispatcher” not found for file:///Users/wenguoqing.9/Documents/game/game-front-end/packages/ccgame-common-3d/src/Cocos3DGame.ts

at rejector (/Applications/Cocos/Creator/3.8.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/@editor/lib-programming/static/executor/systemjs-bridge/out/index.js:759:15)

at ExecutorSystem.resolve [as _detailResolve] (/Applications/Cocos/Creator/3.8.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/@editor/lib-programming/static/executor/systemjs-bridge/out/index.js:777:13)

at ExecutorSystem._resolve (/Applications/Cocos/Creator/3.8.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/@editor/lib-programming/src/editor-systemjs/index.ts:137:14)

at SystemJS.resolve (/Applications/Cocos/Creator/3.8.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/@editor/lib-programming/src/editor-systemjs/index.ts:36:23)

at /Applications/Cocos/Creator/3.8.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/@editor/lib-programming/static/executor/systemjs-bridge/out/index.js:355:37

at Array.map ()

at /Applications/Cocos/Creator/3.8.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/@editor/lib-programming/static/executor/systemjs-bridge/out/index.js:353:41

at file:///Users/wenguoqing.9/Documents/game/game-front-end/packages/game-marketing-f/temp/programming/packer-driver/targets/editor/chunks/6d/cce:/internal/x/prerequisite-imports:8:13

at Object.execute (file:///Users/wenguoqing.9/Documents/game/game-front-end/packages/game-marketing-f/temp/programming/packer-driver/targets/editor/chunks/6d/cce:/internal/x/prerequisite-imports:4:1)

at Executor._importPrerequisiteModules (/Applications/Cocos/Creator/3.8.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/@editor/lib-programming/src/executor/index.ts:316:13)

Error: [Scene] Error: Error: Module “./EventDispatcher” not found for file:///Users/wenguoqing.9/Documents/game/game-front-end/packages/ccgame-common-3d/src/Cocos3DGame.ts

at SystemJS.resolve (/Applications/Cocos/Creator/3.8.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/@editor/lib-programming/src/editor-systemjs/index.ts:36:23)

at /Applications/Cocos/Creator/3.8.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/@editor/lib-programming/static/executor/systemjs-bridge/out/index.js:355:37

at Array.map ()

  • 首个报错:无

  • 之前哪个版本是正常的: 无

  • 手机型号: 无

  • 手机浏览器: 无

  • 编辑器操作系统:macOS

  • 重现概率: 100%

解决了吗?我这也是升级到3.8 发现读的是文件引用路径,软链没法用

已解决,在项目设置-脚本-勾选-保持符号连接

1赞