[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;
附件已上传
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;
附件已上传
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Laya_z
赞同来自: