-
Creator 版本: 3.0.1
-
目标平台: Windows
用Cocoscreator做了几组动画,发布web-desktop执行,没有任何问题,构建Windows时,没有报错,但执行生成的exe文件时,出现下列现象:
有时构建后一切正常,但其中几组动画的背景没有加载进来,背景是黑的;
有时构建后,运行了几组动画后,跳转到下一组动画时,直接异常退出。
每组动画用了一个Scene,几组动画之间切换,写了简单的脚本,如下:
changeScene(scenename:string) {
cc.director.loadScene(scenename);
}
此段代码,是在动画编辑器中关键帧上执行了next方法,进行跳转到下一个Scene。
此外再无任何代码
检查了生成日志,发现日志中间有一条错误信息:
“Caught exception during build core-js: WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.\n - configuration.entry should be an non-empty array.\n -> A non-empty array of non-empty strings\nThis may indicates the core-js polyfill is not necessary. See https://github.com/zloirock/core-js/issues/822”
不知道是否和这个错误信息有关系。
请各位大神给与指导,谢谢!!