[]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该如何配置?
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该如何配置?
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
w1114367261
赞同来自: