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

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

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有没有什么办法解决呢? [ 98%]

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

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

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

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

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

4. __class is not defined [ 92%]

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

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

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

6. 微信加载proto文件 [ 90%]

... 已邀请: 与内容相关的链接 提交 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

7. Laya发布微信包提示Uncaught ReferenceError: Laya is not defined [ 89%]

...Error: Laya is not defined    解决方法:在game.js  的第一行即require的最开始的位置,再添加一个require("libs/laya.core.js");    如果bin的里面没有game.js   就加入到发布后的微信包的game.js里面 附件 : --> 2020-05-04 添加评论 免费帖 --> 分享 ...

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

8. 微信小程序打包,提示“laya is not defined[ 88%]

...  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 gamePage.html:135 window.onerror -------------------------- 堆栈代码片段:         附件 : --> 2018-01...

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

9. 发布到微信小游戏,编译报错Laya is not defined [ 87%]

... 分享 微博 QZONE 微信 ITJacob 赞同来自: 在game.js文件中加上require("libs.js");即可,好像说微信小游戏自带了laya包,不过本地调试的时候加上这条就好了,把libs 里的require("./libs/laya.core.js");加上,本地环境里就有laya了。 2020-08-30 0 0 ...

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

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