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

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

11. 1.9LayairIDE创建的微信小游戏示例运行报错 [ 73%]

...airIDE创建的微信小游戏示例运行报错 VM32 WAGame.js:1 Uncaught ReferenceError: Laya is not defined     at code.js? [sm]:1     at require (VM32 WAGame.js:1)     at VM32 WAGame.js:1     at VM42 game.js:4     at require (VM32 WAGame.js:1)     at <anonymous>:1:1     at HT...

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

12. 如何引入npm包? [ 71%]

...我引入后,代码提示是有的,但是编译运行后就报错了,ReferenceError: require is not defined 是我引入的方式不对吗? 论坛里也没有搜到相关的,请大神给个typescript的使用例子       附件 : --> 2017-12-05 添加评论 免费帖 --> 分享 微博 Q...

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

13. 微信小游戏 [ 71%]

...具上跑起来报错 (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

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

... 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

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. 官网的微信小游戏2D例子,发布以后无法运行 [ 70%]

...游戏, 运行报错: 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

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

...同来自: 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

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. 全局安装layaair2-cmd报错怎么办啊 [ 69%]

...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

20. 加载模块报错 [ 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