• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 30 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0028 秒)

11. 微信小程序打包,提示“laya is not defined” [ 72%]

...包,提示“laya is not defined” 微信开发工具堆栈:(unknown) ReferenceError: laya is not defined     at code.js:11708     at code.js:11720     at code.js:18226     at require (WAGame.js:11)     at WAGame.js:11     at game.js? [sm]:4     at require (WAGame.js:11)     at ...

来源: Laya_社区 发布时间: 20180131

12. 小程序不支持matter.js吗 [ 72%]

...不支持matter.js吗 VM145:1 gameThirdScriptError Matter is not defined ReferenceError: Matter is not defined at http://xxx.xxx.x.x:14680/game/code.js:1:839076 at http://xxx.xxx.x.x:14680/game/code.js:1:843108 at require (http://xxx.xxx.x.x:14680/game/ ... :77964) at http://xxx.xxx.x.x:14680/game/ ...

来源: Laya_社区 发布时间: 20181124

13. laya的ide如何import js并调用里面的类和方法?VS Code正常。 [ 71%]

...同来自: e:\laya\TypeScriptSample\bin\js\main.js:2 requirejs.config({ ^ ReferenceError: requirejs is not defined at Object.<anonymous> (e:\laya\TypeScriptSample\bin\js\main.js:2:1) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (modul...

来源: Laya_社区 发布时间: 20171116

14. 微信小游戏 [ 70%]

...具上跑起来报错 (unknown) gameThirdScriptError laya is not defined ReferenceError: laya is not defined at Function.EventDispatcher.__init$ (http://127.0.0.1:49737/game/code.js:613:26) at http://127.0.0.1:49737/game/code.js:15:71 at Array.forEach (<anonymous>) at Object.__init (http://127...

来源: Laya_社区 发布时间: 20180510

15. 小游戏发布 本地包大小问题,code.js 太大了怎么处理呢? [ 70%]

... 人 吉日-jerry • 2018-05-11 15:18 好的 xiaojun • 2018-05-11 10:45 ReferenceError: Matter is not defined 请问下你那边编译不会报这个错吗?我这边现在报着错不知道咋解决 吉日-jerry • 2018-05-11 11:23 发布后的微信小游戏工程里改game.js: let matter =...

来源: Laya_社区 发布时间: 20180510

16. [LayaAirIDE 3.0]更新LayaAir 3.1.0-beta.1后编译不了 [ 70%]

... ts_global 赞同来自: laya.core.js:1 Failed to load internal/sky.jpg: ReferenceError: ImageBitmap is not defined     at http://127.0.0.1:24647/game/li ... 14785     at async Promise.all (index 0)     at async Promise.all (index 0) warn @ laya.core.js:1 warnFailed @ laya.core.js:1 (anonymous...

来源: Laya_社区 发布时间: 20231116

17. 官网的微信小游戏2D例子,发布以后无法运行 [ 69%]

...游戏, 运行报错: VM13:1 gameThirdScriptError Laya is not defined ReferenceError: Laya is not defined     at http://127.0.0.1:16026/game/code.js:29:15     at require (http://127.0.0.1:16026/game/__ ... :96033)     at http://127.0.0.1:16026/game/__ ... 95643     at http://127.0.0.1:16...

来源: Laya_社区 发布时间: 20200326

18. 发布的微信小游戏代码运行出错 [ 69%]

...戏代码运行出错 VM194:1 gameThirdScriptError Window is not defined ReferenceError: Window is not defined at http://127.0.0.1:11874/game/code.js:1:773096 at require (http://127.0.0.1:11874/game/__ ... :13718) at http://127.0.0.1:11874/game/__ ... 13432 at http://127.0.0.1:11874/game/game.js:4:1...

来源: Laya_社区 发布时间: 20180713

19. 加载模块报错 [ 68%]

...node", "lib": [ "dom", "es5" ] }, "exclude": [ // "node_modules" ] }报错 ReferenceError: exports is not defined 生成的js是Object.defineProperty(exports, "__esModule", { value: true }); var Collections = require("typescript-collections"); 刚接触ts,不太清楚怎么加载模块,编译时...

来源: Laya_社区 发布时间: 20180107

20. 全局安装layaair2-cmd报错怎么办啊 [ 68%]

...R! fs.js:47 npm ERR! } = primordials; npm ERR!     ^ npm ERR!  npm ERR! ReferenceError: primordials is not defined npm ERR!     at fs.js:47:5 npm ERR!     at req_ (/usr/local/lib/node_modules/layaair2-cmd/node_modules/natives/index.js:143:24) npm ERR!     at Object.req [as require] (/usr/lo...

来源: Laya_社区 发布时间: 20220406