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

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

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

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

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

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

Laya发布微信包提示Uncaught ReferenceError: Laya is not defined 1)   报错:Uncaught ReferenceError: Laya is not defined    解决方法:在game.js  的第一行即require的最开始的位置,再添加一个require("libs/laya.core.js");    如果bin的里面没有game.js   就...

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

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

...容, 但是在真机上调试就 报错 提示 下面2个错误 Uncaught ReferenceError: window is not defined ReferenceError: window is not defined   我在网上找到方法 var window = window || global; var document = document || (window.document = {}); 加在代码最前面试试 试添加...

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

4. __class is not defined [ 83%]

...ass is not defined WAGame.js:3 gameThirdScriptError __class is not defined ReferenceError: __class is not defined at http://127.0.0.1:56728/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/__ ......

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

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

...真机调试,在game.js中都会报错: gameThirdScriptError Uncaught ReferenceError: window is not defined ReferenceError: 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   请问如...

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

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

微信小游戏示例打包之后出现问题 (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 r...

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

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

打包微信小游戏报错 ReferenceError: Matter is not defined 用ActionScript编写项目,可以在pc端正常运行,matter.js是直接用 <script type="text/javascript" src='matter.js' loader='laya'></script> 引入 打包后在微信开发者工具打开报错:Matter is not ...

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

8. 微信小游戏的若干问题 [ 77%]

...是lib本身就很大 这该怎么办   问题3: 编译报错. (unknown) ReferenceError: laya is not defined     at main.min.js? [sm]:1     at require (WAGame.js:11)     at WAGame.js:11     at game.js? [sm]:2     at require (WAGame.js:11)     at gamePage.html:118 window.onerror WA...

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

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

10. 如何引入npm包? [ 72%]

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

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