LayaIDE 报typescript编译版本不一致的错

LayaIDE 报typescript编译版本不一致的错

文件 -> 首选项->用户设置那里修改下

settings.json

// 将设置放入此文件中以覆盖默认设置

{

"typescript.check.tscVersion": true,

"typescript.tsdk":"D:/Download/Laya/LayaAirIDE/resources/app/extensions/node_modules/typescript/lib"

}

然后

import Animation1 = Laya.Animation;

这个地方会报错,改下别名就行了。估计是和es6的Animation冲突了