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

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

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

Laya2.0导入protobufjs第三方库,报错找不到文件  Laya2.0 在Main.ts里:import protoAll = require("../libs/protoAll"); var pCls = protoAll.com.bee.protobuf.ClimbingTowerInfoProto; var p: protoAll.com.bee.protobuf.ClimbingTowerInfoProto = pCls.create(); p.curId = 10; p.isSecondPass = t...

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

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

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

3. node_modules/@types/ . 编译报错 [ 98%]

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

4. destroy节点后,报错 [ 97%]

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

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

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

全局安装layaair2-cmd报错怎么办啊 npm WARN deprecated core-js@2.6.12: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothi...

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

7. 引用Node.js码时报错 [ 96%]

引用Node.js码时报错 Node.js程式码片段var modulus = new Buffer(modulus_b64, 'base64'); 直接点击Buffer移置定义发现index.d.ts裡有写 但这行划了红线 直接使用Buffer会报 Buffer is not defined 改成Laya.Buffer则不能工作 有没有具体上引用的方法呢   附...

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

8. Typescript tsconfig baseurl 编译报错 [ 95%]

Typescript tsconfig baseurl 编译报错 想用import a from "core/view/ViewBase" 代替 from "../../../core/view/ViewBase" 再tsconfig.json 配置了baseurl = "./src" 但是编译会报错: Error: Cannot find module 'core/view/ViewBase' from 'E:\developer\project\svn_wjbj\endLess\src' at E:\devel...

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

9. ide 2.4 layaair2-cmd 编译报错 [ 93%]

ide 2.4 layaair2-cmd 编译报错 步骤,最新版2.4创建一个ts工程,执行编译命令,编译不通过,无任何改动,编辑器能够编译通过,命令行不行➜  GameTowertest node -v v10.17.0 ➜  GameTowertest npm -v 6.11.3 ➜  GameTowertest gulp -v [14:22:19] CLI versi...

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

10. IDE报错 [ 93%]

IDE报错 Error processing "evaluate": TypeError: Cannot read property 'api' of undefined at ChromeConnection.get api [as api] (c:\Program Files (x86)\LayaBox\LayaAirIDE\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeConnection.js:56:28) at ChromeDebu...

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