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

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

81. LayaFlash如何使用chrome调试问题? [ 67%]

...语句“import”代码段间的任意位置加上此宏编译标记“/*[COMPILER OPTIONS:debug]*/”即可开启debug模式:456789101112 package { /*[COMPILER OPTIONS:debug]*/ import flash.display.Sprite; import flash.events.Event; public class Main extends Sprite { …… } …… }   开启...

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

82. 正常运行的2.1升级到2.2.0出现循环依赖的错误,这是咋回事丫 ? [ 67%]

...:18] Using gulpfile D:\Users\Administrator\Personal\myLaya2.2\Client\.laya\compile.js [16:39:18] Starting 'tsc'... [16:39:18] Starting 'CopyNoneTSFile'... [16:39:18] Finished 'CopyNoneTSFile' after 169 ms error { Error: Command failed: D:\laya\2.2.0\resources\app\node_modules\.bin\tsc.cmd -b "D:\Use...

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

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

.../Resources/app [15:34:09] Using gulpfile ~/Git/WorkProject/StackBall/.laya/compile.js [15:34:09] Starting 'compile'... 出错了: TypeScript error: ../../../node_modules/@types/node/index.d.ts(58,22): Error TS6053: File '../../../node_modules/@types/node/base.d.ts' not found.       node 版本:...

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

84. laya2.3微信开放域点发布后编译就会报错 [ 66%]

...作步骤: 1.layaIDE2.3.0创建开放域项目 2.直接点发布按钮(compile.js中代码会发生改变。) 3.然后编译就会如下报错。 Incompatible tsconfig option. Module resolves to 'CommonJS'. This is incompatible with rollup, please use 'module: "ES2015"' or 'module: "ESNext"'. ...

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

85. 搭建开发环境(TS代码编译器)(TypeScript-LayaAir基础篇(TS)-快速上手) [ 65%]

...译环境的安装目录,有了这个,LayaAirIDE里就能通过这个Compiler将TypeScript编译成为JavaScript。 #### 2.3 检查TypeScript编译环境版本 在命令行输入“tsc -v” 命令可查看当前TypeScript编译的版本,如图3-2所示。 ```typescript tsc -v ``` ![图3-2](i...

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

86. 搭建基础开发环境 · LayaAir3.0文档 · LAYABOX [ 65%]

...译环境的安装目录,有了这个,LayaAirIDE里就能通过这个Compiler将TypeScript编译成为JavaScript。 2.2.2 检查TypeScript编译环境版本 在命令行输入“tsc -v” 命令可查看当前TypeScript编译的版本,如图2-4所示。 tsc -v (图2-4) 如果显示出版...

来源: Laya3.0_文档 发布时间: 20230629

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

...复现步骤:(或者直接github地址:https://github.com/raofr/laya_compile_bug) 创建TypeScript空项目 修改src/LayaSample.ts import WebGL = Laya.WebGL; // 程序入口 class GameMain{ constructor() { Laya.init(600,400, WebGL); } static wallet:com.battlecry.idle_m.data_proto.WalletMod...

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

88. laya支持的发布模式有哪些? [ 64%]

...存在的问题。  使用:    (1)、开启debug模式方法: /*[COMPILER OPTIONS:debug]*/ 在游戏入口类的package内导包位置加上此编译宏;    (2)、关闭debug模式方法: 删掉编译宏; 3、发布(release)模式  描述:   在release编译模式下,会...

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

89. Laya2.0编译后所有js都自动合并到bundle.js中,导致bundle.js过大,加载速度很慢,bundle.js可以拆分吗 [ 62%]

...烫 2019-10-09 0 0 分享 微博 QZONE 微信 xiaocai 赞同来自: {   "compilerOptions": {     /* Basic Options */     "target": "es2017",                          /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ ...

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

90. 项目发布详解(含命令行发布)(TypeScript-IDE篇(TS)-代码模式基础) [ 62%]

...on output the version number -h, --help output usage information Commands: compile compile project. publish publish project. help [cmd] display help for [cmd] ``` #### layaair2-cmd的帮助说明: 帮助中首先给出了命令的使用范例: ``` Usage: layaair2-cmd [command] [args] ``` 说明...

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