[]mac os ts环境配置

在mac os系统下,安装typescript后使用LayaAirIDE编译出现错误

src/uiscripts/InterServiceSports/OverServiceFight.ts(24,48): error TS2339: Property 'getSquareIconPath' does not exist on type 'typeof ui'.
src/uiscripts/InterServiceSports/OverServiceFight.ts(32,48): error TS2339: Property 'getSquareIconPath' does not exist on type 'typeof ui'.
src/utils/Utils.ts(874,9): error TS2322: Type '[any, number]' is not assignable to type '[number]'.
Types of property 'length' are incompatible.
Type '2' is not assignable to type '1'.
 
通过sudo vim /etc/paths添加path环境变量后还是会报这个错误,mac os该如何配置?
已邀请:

w1114367261

赞同来自:

你这是项目问题,需要自己来解决的哦!

要回复问题请先

商务合作
商务合作