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

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

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

...对路劲,就报其他的路径找不到。 出错了: 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在La...

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

2. 使用2.6引擎版本vscode开发不支持async await语法 编译出现提示缺少tslib错误 [ 98%]

...lper but module 'tslib' cannot be found.     at error (D:\Program Files\nodejs\node_global\npm\node_modules\layaair2-cmd\node_modules\rollup\dist\shared\node-entry.js:5400:30)     at throwPluginError (D:\Program Files\nodejs\node_global\npm\node_modules\layaair2-cmd\node_modules\rollup\dist\sh...

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

3. unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function [ 97%]

unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function var role3D: Laya.Sprite3D = Laya.loader.getRes("res/lk4.lh") as Laya.Sprite3D; //加载到场景 scene.addChild(role3D);  //此处报错 var ani = role3D.getComponent(Laya.Animator) as Laya.Animator; //播...

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

4. 安装layaair2-cmd一直失败 [ 97%]

...Roaming\npm\layaair2-cmd -> C:\Users\Administrator\AppData\Roaming\np m\node_modules\layaair2-cmd\layaair2-cmd.js > core-js@2.6.11 postinstall C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\no de_modules\core-js > node -e "try{require('./postinstall')}catch(e){}" Thank...

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

5. node_modules/@types/ . 编译报错 [ 97%]

node_modules/@types/ . 编译报错 TypeScript error: ../../../node_modules/@types/node/index.d.ts(38,22): Error TS6053: File '../../../node_modules/@types/node/inspector.d.ts' not found. 我之前装过这个.后来删了..但是每次编译还是报错0.0 2019-01-19 添加评论 免费帖 --> 分...

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

6. 构建报错,TypeScript error: node_modules/@types/node/base.d.ts' not found. [ 96%]

LayaAir引擎 LayaAir IDE 构建报错,TypeScript error: node_modules/@types/node/base.d.ts' not found. 有人遇到这个问题么?构建直接报错,无法打包!  开始编译: Tue Jan 07 2020 15:34:09 GMT+0800 (CST) -------------------------------------- [15:34:09] Working directory ch...

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

7. 使用unity插件点击LayaAirRun提示安装node,但是已经全局安装了node [ 96%]

使用unity插件点击LayaAirRun提示安装node,但是已经全局安装了node 如图,在终端里可以看到已经全局安装了node,点击unity插件的LayaAir Run 还是提示需要安装node。 插件版本 下载的是2.0.0版本 附件 : --> 2019-10-11 添加评论 免费帖 --> 分...

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

8. destroy节点后,报错 [ 96%]

destroy节点后,报错 /* 从舞台移除模型对象 @param node 节点 */ base_remove(node){ if(node.numChildren<=0)return; console.log('移除',node.name); let obj; for(let i=node.numChildren-1;i>=0;i--){ obj= node.getChildAt(i); obj.destroy(); } }   或者 /* 从舞台移除模型对...

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

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

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

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

10. Node类中getChildByName没有null容错 [ 95%]

Node类中getChildByName没有null容错 laya.core Node类,这里的this._childs可能为null。 这里希望框架做一下容错! 附件 : --> 2017-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixu...

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