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

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

1. 真机调试 开启子域后 提示出现window is not defined [ 100%]

... 分享 微博 QZONE 微信 朝俊 赞同来自: game.js 入口文件里  require("/js/laya/weapp-adapter.js");要放在第一处 2018-12-27 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 徐飞 相关问题 TS项目使用matter.js库...

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

2. 在layaair2.3版本中报ReferenceError: require is not defined有没有什么办法解决呢? [ 97%]

在layaair2.3版本中报ReferenceError: require is not defined有没有什么办法解决呢?   附件 : --> 2021-01-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 ...

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

3. 使用protobuf的时候,require报错 [ 95%]

使用protobuf的时候,require报错 用工具生成自己的proto.js 之后,把他和库文件protobuf.js 放在一个目录下了。 proto.js里面,第一行代码就是:var $protobuf = require("protobuf");   运行的时候报错:require is not defined 请教各位大神,这个怎...

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

4. 微信加载proto文件 [ 91%]

... 已邀请: 与内容相关的链接 提交 3 个回复 qian 赞同来自: require("weapp-adapter.js"); require("./bytebuffer.js") window.ProtoBuf = require("./protobuf.js") require("./code.js"); game.js 里面这样引入试试。 2018-03-13 0 1 分享 微博 QZONE 微信 xiongxin11 赞同来自: ...

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

5. 嵌套类型的protobuf报错 [ 89%]

嵌套类型的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

6. 微信小游戏调试报错window is not defined [ 89%]

... window is not defined at https://servicewechat.qq.com/game.js:63771:12 at require (<anonymous>:3:7977) at https://servicewechat.qq.com/game.js:63777:10   请问如何解决?官方的DEMO都有问题吗? 2019-01-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

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

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

8. JS中require关键字找不到定义 [ 88%]

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

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

9. __class is not defined [ 87%]

...728/game/code.js:53274:3 at http://127.0.0.1:56728/game/code.js:53276:4 at require (http://127.0.0.1:56728/game/__ ... :13675) at http://127.0.0.1:56728/game/__ ... 13424 at http://127.0.0.1:56728/game/game.js:4:1 at require (http://127.0.0.1:56728/game/__ ... :13675) at http://127.0.0.1:56728/game/...

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

10. 微信小游戏使用位图字体报错 [ 87%]

...s/entities" is not defined Error: module "libs/entities" is not defined at require (http://127.0.0.1:13507/game/__ ... :78730) at http://127.0.0.1:13507/game/__ ... 78480 at http://127.0.0.1:13507/game/li ... 52:18 at require (http://127.0.0.1:13507/game/__ ... :78871) at http://127.0.0.1:13507/game...

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