-
详细报错信息,包含调用堆栈:
The Web Audio autoplay policy will be re-enabled in Chrome 70 (October 2018). Please check that your website is compatible with it. https://goo.gl/7K7WLu
cocos2d-js-for-preview.js:29015
Cocos Creator v2.1.0
cocos2d-js-for-preview.js:8399
TypeError: Object prototype may only be an Object or null: undefined
cocos2d-js-for-preview.js:81617
at setPrototypeOf ()
at 327.window.__extends (http://localhost:7456/app/engine/bin/cocos2d-js-for-preview.js:81617:7)
at c:\Users\Administrator\Documents\GameplayFramework-master\assets\scripts\Character\Appear\Player\AppearIdlePlayer.ts
39
at __define (c:\Users\Administrator\Documents\GameplayFramework-master\assets\scripts\Character\Appear\Player\AppearIdlePlayer.ts
39)
at Object.func (c:\Users\Administrator\Documents\GameplayFramework-master\temp\quick-scripts\assets\scripts\Character\Appear\Player\AppearIdlePlayer.js:48:18)
at Object.cc.require (http://localhost:7456/app/editor/static/preview-templates/modular.js:64:19)
at __require (c:\Users\Administrator\Documents\GameplayFramework-master\temp\quick-scripts\assets\scripts\Character\Character\CharacterPlayer.js:1:284)
at __define (c:\Users\Administrator\Documents\GameplayFramework-master\assets\scripts\Character\Character\CharacterPlayer.ts
1)
at Object.func (c:\Users\Administrator\Documents\GameplayFramework-master\temp\quick-scripts\assets\scripts\Character\Character\CharacterPlayer.js:60:18)
at Object.cc.require (http://localhost:7456/app/editor/static/preview-templates/modular.js:64:19) -
重现方式:demo直接运行
-
之前哪个版本是正常的 :
-
手机型号 :
-
手机浏览器 :
-
编辑器操作系统 :windows
-
编辑器之前是否有其它报错 :
-
出现概率:必现
-
额外线索:
https://forum.cocos.com/t/bug-typeerror-object-prototype-may-only-be-an-object-or-null-undefined/61253
尝试:
1.重启 - 无效
2.清空缓存 - 无效
3.ts文件循环import - 尝试中
https://blog.csdn.net/qq_24147051/article/details/85062894
“TS只能单层继承” -> demo中 State-StateIdle-StateIdlePlayer 也是这种继承关系,语法无错,运行不报错

