cocos2d-js-min.js:1 Uncaught TypeError: this.bgAudio.play is not a functionUncaught TypeError: this.bgAudio.play is not a functionUncaught TypeError: Cannot read properties of undefined (reading 'playMusic')这些错误表明在打包后的环境中,对`bgAudio`的引用可能出现了问题,或者某些函数和方法无法正确...
cocos2d-js-min.js:1 Uncaught TypeError: this.bgAudio.play is not a functionUncaught TypeError: this.bgAudio.play is not a functionUncaught TypeError: Cannot read properties of undefined (reading 'playMusic')Uncaught TypeError: Cannot read properties of null (reading 'play')cc.audioEngine 为 unde...
报错:TypeError: Cannot read property ‘packs’ of undefined 这个报错是由于你bundle中的prefab引用了cocos内置的素材导致的,改成用自己的图片就可以了 这个是default_btn_normal就是cocos的内置素材 报错: Cannot read property 'persistentGizmo' of null Cannot read property 'constructor' of null 这个报错是由于...
Mac版的,为什么一修改场景内容,一按保存场景就提示Exception TypeError: Cannot read property ‘autoBuild’ of undefined,然后程序就挂了?verysharp (verysharp) 2019年03月19日 16:37 #2 把原来的版本和cocos creator相关的用户文件都删了,再重新安装就好了 ...
Uncaught TypeError: Cannot read properties of null (reading 'play') cc.audioEngine 为 undefined 一开始我以为是引擎版本原因,切换几次后发现根本不是,因为把代码放到相同版本下的其他项目下是正常的。最主要的是打包后报的错误真不好排查,导致在这个问题上花了很多时间。最后在比较打包后的 js 文件,才怀疑是...
Uncaught TypeError: Cannot read property 'x' of undefined at Area (CCPolygonSeparator.js:312) at Right (CCPolygonSeparator.js:194) at Reflex (CCPolygonSeparator.js:182) at ConvexPartition (CCPolygonSeparator.js:52) at Object.ConvexPartition (CCPolygonSeparator.js:129) at cc_PhysicsPolygonCollide...
Uncaught TypeError: Cannot read properties of undefined (reading 'playMusic') Uncaught TypeError: Cannot read properties of null (reading 'play') cc.audioEngine 为 undefined fb5c9b1198ed7b386efdaafff7e02b78_up-1c4cf5b0674eda34575543ff94af6d1166d.png ...
Uncaught TypeError: Cannot read properties of null (reading 'play') cc.audioEngine 为 undefined 一开始我以为是引擎版本原因,切换几次后发现根本不是,因为把代码放到相同版本下的其他项目下是正常的。最主要的是打包后报的错误真不好排查,导致在这个问题上花了很多时间。最后在比较打包后的 js 文件,才怀疑是...
结果会有报错:"TypeError: Cannot read property 'moveSpeed' of null",这是因为cfg没有被导出。由于 require 实际上获取的是目标脚本内的module.exports变量,所以我们还需要在config.js的最后设置module.exports = config: // config.js - v2varcfg = { ...
Uncaught TypeError: Cannot read properties of null (reading 'play') cc.audioEngine 为 undefined 一开始我以为是引擎版本原因,切换几次后发现根本不是,因为把代码放到相同版本下的其他项目下是正常的。最主要的是打包后报的错误真不好排查,导致在这个问题上花了很多时间。最后在比较打包后的 js 文件,才怀疑是...