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

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

11. 问一个typescript的问题 [ 83%]

问一个typescript的问题 虽然这个在这里提问不太合适,但仍然希望有高手帮忙解答下。 我写了一个类 class Runner extends Laya.Sprite { } 在src/Runner.ts里面 现在我准备开发多人对战版本,于是准备再写一个多人模块,包含相关的一些类 ...

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

12. Typescript tsconfig baseurl 编译报错 [ 82%]

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

13. 使用typescript开发项目,解决文件引用顺序问题 [ 82%]

分享 使用typescript开发项目,解决文件引用顺序问题 前几天好像看到有人说使用typescript开发项目时编译出来的js文件引用顺序不正确,我今天试了下,可以使用ts的import/export处理这个问题 一、调试 修改tsconfig.json,把module和targe...

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

14. laya 2.0 typescript console.log 为何不能智能识别 ts 文件行号? [ 82%]

laya 2.0 typescript console.log 为何不能智能识别 ts 文件行号? layabox可以识别console.log()当前所在行号,在右边一个小小的地方可以点击到行。   但是,如果自己调用了typescript的Error对象的stack属性,对输出的文件行号不能智能识别...

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

15. 编译Typescript项目时卡死,通过node断点调试layaair-cmd,已定位是tsSort.js问题 [ 81%]

编译Typescript项目时卡死,通过node断点调试layaair-cmd,已定位是tsSort.js问题 系统及版本: IDE:1.7.21Engine:1.7.21OS: Windows10Node: v8.12.0        复现步骤:(或者直接github地址:https://github.com/raofr/laya_compile_bug) 创建TypeScript空项目 修...

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

16. mac laya 2.5beta ts示例工程 tsconfig.json tartget 改成es5 编译报错 [ 81%]

...ions/LayaAirIDE_beta.app/Contents/Resources/app/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:17187:30) at lodash_3 (/Applications/LayaAirIDE_beta.app/Contents/Resources/app/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:24954:23) at array...

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

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

...r (D:\Software\Develop\LayaAirIDE\resources\app\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:17187:30) at lodash_3 (D:\Software\Develop\LayaAirIDE\resources\app\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:24954:23) at arrayEach (D:\Sof...

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

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

...odejs\node_global\npm\node_modules\layaair2-cmd\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:17194:30)     at lodash_3 (D:\Program Files\nodejs\node_global\npm\node_modules\layaair2-cmd\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:24...

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

19. (旧版)项目发布详解(TypeScript-IDE篇(TS)-代码模式基础) [ 78%]

# 项目发布2.0详解 > author: charley version: LayaAir IDE 2.0.0 正式版 update:2019-1-16 项目菜单的发布功能是非常核心的功能,通常是用于游戏的JS合并、JS压缩与混淆、图片压缩、版本管理、游戏不同平台的适配等。在项目完成开发,或阶...

来源: Laya2.0_文档 发布时间: 20210715

20. LayaAir2在编辑器里面新建默认的3D项目(TS语言),无法完成编译和运行。 [ 77%]

...----------------------------------- 编译结束,耗时1.469s 出错了: TypeScript error: src/layaair3d.ts(26,24): Error TS2339: Property 'direction' does not exist on type 'DirectionLight'.     打开 LayaAir3D.ts 文件,发现报了5条错误:     是不是新建3D项目的模板还没...

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