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

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

91. laya开发支持npm install安装的node_modules吗 [ 71%]

...博 QZONE 微信 Laya_Aaron 赞同来自: 这没有例子,是否能直接require 是看你安装的时候是不是 配了全局的环境变量, 如果不是,你可以改这个文件加入路径,或者把下载的module放到我们默认的node_module路径里。 2018-03-14 0 0 分享 微博 ...

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

92. 微信小游戏 gameThirdScriptError events [ 71%]

...e.js:21112:7     at http://127.0.0.1:52880/game/code.js:21113:3     at require (http://127.0.0.1:52880/game/__ ... :13675)     at http://127.0.0.1:52880/game/__ ... 13424     at http://127.0.0.1:52880/game/game.js:2:1     at require (http://127.0.0.1:52880/game/__dev__/WAGame.js:3:13675) ...

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

93. 微信小游戏加云开发,项目怎样配置 [ 71%]

...s:349     at laya.ui.js:1     at wrapFn (gameContext?id=1:51)     at require (VM37 WAGameSubContext.js:2)     at VM37 WAGameSubContext.js:2     at index.js? [sm]:12     at wrapFn (gameContext?id=1:51)     at require (VM37 WAGameSubContext.js:2)     at VM37 WAGameSubContext.js:2 2021-...

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

94. 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' [ 71%]

... 'new' at new Widget (laya.ui.js:139) at laya.ui.js:285 at laya.ui.js:1 at require (VM282 WAGame.js:1) at VM282 WAGame.js:1 at index.js? [sm]:17 at require (VM282 WAGame.js:1) at VM282 WAGame.js:1 at game.js? [sm]:9 at require (VM282 WAGame.js:1) 不勾选的话,部分不支持es6的机型会因...

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

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

...: 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 at require (http://127.0.0.1:11874/game/__ ... :13718) at http://127.0.0.1:11874/game/...

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

96. [0]layaair2-cmd 编译bug [ 70%]

...layaair2-cmd/node_modules/natives/index.js:143:24)     at Object.req [as require] (/usr/local/lib/node_modules/layaair2-cmd/node_modules/natives/index.js:55:10)     at Object.<anonymous> (/usr/local/lib/node_modules/layaair2-cmd/node_modules/graceful-fs/fs.js:1:37)     at Module._compile...

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

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

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

98. 微信小游戏应用错误 [ 70%]

...cj001 • 2018-03-08 17:14 还不够明细吗,要我写代码出来吗、require("/libs/laya.core.js"); require("/libs/laya.core.min.js") qian • 2018-03-08 17:17 这里已经不用改了啊直接发布的时候点微信小游戏就好了 fcj001 • 2018-03-08 17:30 亲,我...

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

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

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

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

100. Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才不会报这个错。。才能进去 [ 70%]

...file in the package:app.json 12-09 22:04:33.108 12728-12832/? I/LayaBox:  require(/sdcard/layabox/scripts/scripts/index.js) 12-09 22:04:33.109 12728-12832/? I/LayaBox:  require(/sdcard/layabox/scripts/index.js) 12-09 22:04:33.110 12728-12832/? I/LayaBox: found the file in the package:scripts/index...

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