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

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

1. linux系统运行layaair-cmd报错 [ 100%]

...运行命令时报错: Platform does not support. /data/node_v8/lib/node_modules/layaair-cmd/layaair-cmd-resourceVersion.js:57 exit(1); ^ ReferenceError: exit is not defined at Object.<anonymous> (/data/node_v8/lib/node_modules/layaair-cmd/layaair-cmd-resourceVersion.js:57:3) at Module._comp...

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

2. Laya2.0导入protobufjs第三方库,报错找不到文件 [ 99%]

...劲,就报其他的路径找不到。 出错了: TypeScript error: node_modules/@types/node/index.d.ts(50,22): Error TS6053: File 'node_modules/@types/node/base.d.ts' not found.     请问要怎么设置,怎么放各种文件,才能把这个node_modules下的第三方库protobufjs在Laya项...

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

3. 1.7.9LayaIDE 发布出现Cannot find module 'colors'错误 [ 99%]

1.7.9LayaIDE 发布出现Cannot find module 'colors'错误 打开1.7.9LayaIDE 点击发布,出现Cannot find module 'colors'错误   module.js:472 throw err; ^ Error: Cannot find module 'colors' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at...

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

4. 问下关于websocket的问题 [ 99%]

...一个服务端的程序,为啥用node运行的时候弹出" Cannot find module 'ws'"? C:\Users\Administrator\Desktop>node jjj.js module.js:472 throw err; ^ Error: Cannot find module 'ws' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Modul...

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

5. layaair2-cmd安装报错 [ 99%]

...r2-cmd安装报错 Working directory changed to ~\AppData\Roaming\npm\node_modules\layaair2-cmd internal/modules/cj s/loader.js:638     throw err;     ^ Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\node_modules\gulp-babel'     at Function.Modu...

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

6. layaair2-cmd compile 一直报错loader.js:638 throw err; [ 98%]

...9.0   报错内容: PS E:\test2\test2> layaair2-cmd compile internal/modules/cjs/loader.js:638     throw err;     ^ Err or: Cannot find module 'remove-trailing-separator'     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)     at Function.Module._load (inter...

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

7. TypeScript在LayaAir 1.X和2.X中对待module和namespace的异同,求2.x使用自定义namespace的方法(module已经找到方法) [ 98%]

TypeScript在LayaAir 1.X和2.X中对待module和namespace的异同,求2.x使用自定义namespace的方法(module已经找到方法) 我发现1.x版本把每个ts编译成为一个js。并且namespace和module暴露在全局空间里,不用import就可以namespace.XXX和module.xxx引用。 ...

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

8. 关于分包的问题,是否是编译器bug? [ 98%]

...编译器bug? 分包配置确认无误 如果代码中这样写: var module:Module = __JS__("new modules.LoginModule()"); module.run(); 编译后login.js里是空的,所有module都只有一个入口样函数,运行时当然就是报错,找不到定义,内容如下: (function(window,do...

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

9. 如果作大型LAYA AS项目,有可能支持module技术么 [ 98%]

如果作大型LAYA AS项目,有可能支持module技术么 大型项目的话,主js文件太大,能否实现类似module的技术,动态加载代码模块 2017-02-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 ...

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

10. 全局安装layaair2-cmd报错怎么办啊 [ 98%]

...tual version of core-js. npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/layaair2-cmd/node_modules/mozjpeg npm ERR! command failed npm ERR! command sh -c node lib/install.js npm ERR! fs.js:47 npm ERR! } = primordials; npm ERR!     ^ npm ERR!  npm ERR! ReferenceError: primordials is not ...

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