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

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

1. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 100%]

...代码编译失败,提示“Property 'transform' does not exist on type 'Node'” 我从unity工程导出prefab到layaair中使用,根据文档中的介绍,使用如下代码加载prefab资源,             Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya.Handler.create(...

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

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

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

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

5. linux系统运行layaair-cmd报错 [ 96%]

...md没问题了,运行命令时报错: 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...

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

6. TS项目编译报错‘inspector.d.ts' not found’ [ 95%]

...lpfile.js [11:19:00] Starting 'default'... 出错了: TypeScript error: ../node_modules/@types/node/index.d.ts(34,22): Error TS6053: File '../node_modules/@types/node/inspector.d.ts' not found. 重装node.js 和 ts 都不行...求救~~ 2018-12-06 添加评论 免费帖 --> 分享 微博 QZONE ...

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

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

引用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. XmlDom类没有了?解析xml时,报错Property 'attributes' does not exist on type 'Node & ChildNode'. [ 95%]

...了?解析xml时,报错Property 'attributes' does not exist on type 'Node & ChildNode'. XmlDom没有了吗?要用哪个类? 我只找到原生的XMLDocument,可是报错 Property 'attributes' does not exist on type 'Node & ChildNode'. 谁 遇到过?let local_config:XMLDocument = ...

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

9. layaair-cmd 编译提示 ReferenceError: primordials is not defined [ 95%]

...编译提示 ReferenceError: primordials is not defined osx 下面。。在node官方下载最新的版本 安装layaair-cmd也没啥问题 就是执行compile时候就提示这个。         附件 : --> 2019-11-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

10. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 95%]

给图片节点添加新创建的图片,会报这个错:node._setParent is not a function this.imageBg = this.owner.getChildByName("image_bg"); console.log("this.imageBg==="+this.imageBg); for (let iColumns = 1; iColumns < this.intColumns; iColumns++) { this.arrLove[iColumns] = []; for (let ...

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