cocos creator 3.8.0打包提示Error: Could not resolve "/predefine' from ../ProgramData/cocos/editors/Creator/3.8.0/r 3d/enaineexports/base ts

我cocos creator 3.8 打任意版本的包 都提示Error: Could not resolve "/predefine’ from …/ProgramData/cocos/editors/Creator/3.8.0/r 3d/enaineexports/base.ts
重装了几次引擎也是一样的问题。最后把引擎安装到目标盘根目录 解决了问题 希望对遇到同样情况的小伙伴有帮助。

同样也是遇到这个问题,在3.8版本才出现。

Could not resolve ‘…/predefine’ from …/…/…/D:/Project/online/CreatorGameEngine/engine/trunk2.0/exports/base.ts