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

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

11. 微信小游戏:Matter is not defined [ 86%]

...aya_Aaron: 好吧。谢谢。 冰水blue • 2018-06-13 11:54 let matter = require("./libs/matter.js"); window.Matter = matter; require("./code.js"); 确实可以了,麻烦看下,下面这个系统问题是什么原因,谢谢您!

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

12. 嵌套类型的protobuf报错 [ 86%]

嵌套类型的protobuf报错 message LoginResult {  required int32 result = 1;  optional string authToken = 2;  repeated ServerInfo serverList = 3;  optional int32 platformErrorCode = 4;  optional string par1 = 5;  optional string par2 = 6;  optional string recommendedUId = 7; } message Ser...

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

13. ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found [ 84%]

ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found 环境win10 layaboxide 2.6.0 beta 已经全局安装typescript,命令行 tsc -v,输出Version 3.8.3 nodejs 12.16.1 编译报错: semantic error TS2354: [31mThis syntax requires an imported he...

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

14. 微信小游戏示例打包之后出现问题 [ 83%]

...出现问题 (unknown) ReferenceError: ui is not defined at code.js:1 at require (WAGame.js:11) at WAGame.js:11 at game.js? [sm]:2 at require (WAGame.js:11) at gamePage.html:111 window.onerror WAGame.js:11 Uncaught ReferenceError: ui is not defined at code.js:1 at require (WAGame.js:11) at WAGame.js...

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

15. JS中require关键字找不到定义 [ 82%]

JS中require关键字找不到定义 在JS中编写:var game_config = require("./game_config.js"); 编译通过,但是运行时报错:require is not defined! 求解答! 2019-09-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

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

...ught 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 HTMLScriptElement.scriptLoaded (<anonymous>:18:21)     at HTMLSc...

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

17. 微信小游戏怎么引入DOMParser? [ 80%]

...ow.Parser,按照我能搜到的代码,你们的建议是 window.Parser=require('./domparser.js'); 但是, 我下载的laya库文件中只有 domparserinone.js如果 window.Parser=require('./domparserinone.js')会导致报错WAGame.js:3 gameThirdScriptErrorSaxO is not definedReferenceError: Sa...

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

18. 小程序不支持matter.js吗 [ 80%]

...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/ ... 77573 at http://xxx.xxx.x.x:14680/game/game.js:4:1 at require (xxx.xxx.x.x:14680/game/__dev__/WAGame.js:1:77964) at http://xxx.xxx.x.x:...

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

19. 打包微信小游戏报错 ReferenceError: Matter is not defined [ 79%]

...报错:Matter is not defined, 在game.js里面添加了 let matter = require("matter.js"); window.Matter = matter; 但是还是不行,有没有其他方法解决 附件 : --> 2018-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

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

...05-11 11:23 发布后的微信小游戏工程里改game.js: let matter = require("matter.js"); window.Matter = matter; require("weapp-adapter.js"); require("code.js"); 吉日-jerry • 2018-05-11 11:28 这种方式在个别手机上有问题,等待官方回复吧

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