[0]2d示例项目打包为微信小游戏报错,Cannot read property 'LESS' of null

Cannot read property 'LESS' of null
TypeError: Cannot read property 'LESS' of null
    at Function.value (http://127.0.0.1:43542/game/li ... :19438)
    at Object.value [as init] (http://127.0.0.1:43542/game/li ... 515524)
    at new Main (http://127.0.0.1:43542/game/js/bundle.js:267:90)
 
LESS是LayaGL.instance的属性,报错位置在WebGLContext.__init__ ();中
断点发现 在类Render 的 initRender 方法中 getWebGLContext 总返回null;
 
附件已上传
已邀请:

Laya_z

赞同来自:

用你的demo测试,没有报错,你是哪个版本的微信开发者工具,尝试切换一下微信的基础调试库呢?

要回复问题请先

商务合作
商务合作