xsstomy / webpack-egret

webpck-egret 个人开发环境 可以支持ES 2015/TypeScript 开发
16 stars 8 forks source link

egret的api 报大堆错 但是正常编译了 怎么修正那些报错 #2

Open aglice opened 7 years ago

aglice commented 7 years ago

ERROR in [default] F:/6_practiceSpace/webpack-egret/node_modules/_typescript@1.8 .10@typescript/lib/lib.d.ts:14715:10 Duplicate identifier 'TouchEvent'.

ERROR in [default] F:/6_practiceSpace/webpack-egret/node_modules/_typescript@1.8 .10@typescript/lib/lib.d.ts:14725:12 Duplicate identifier 'TouchEvent'.

ERROR in [default] F:/6_practiceSpace/webpack-egret/src/LoadingUI.ts:41:22 Argument of type 'TextField' is not assignable to parameter of type 'DisplayObje ct'. Types of property 'addEventListener' are incompatible. Type '(type: "link", listener: TextField, Z: any, e: TextEvent) => any' i s not assignable to type '(type: "touchMove" | "touchBegin" | "touchEnd" | "t ouchCancel" | "touchTap" | "touchReleaseOut...'. Type '(type: "link", listener: TextField, Z: any, e: TextEvent) => any' provides no match for the signature '(type: "touchMove" | "touchBegin" | "to uchEnd" | "touchCancel" | "touchTap" | "touchReleaseOutside" | "touchRollOut" | "touchRollOver", listener: DisplayObject, Z: any, e: TouchEvent): any'

ERROR in [default] F:/6_practiceSpace/webpack-egret/src/main.ts:145:8 Supplied parameters do not match any signature of call target.

ERROR in [default] F:/6_practiceSpace/webpack-egret/src/main.ts:145:38 Property 'TouchEvent' does not exist on type 'typeof egret'.

ERROR in [default] F:/6_practiceSpace/webpack-egret/src/main.ts:149:35 Module 'egret' has no exported member 'TouchEvent'.

ERROR in [default] F:/6_practiceSpace/webpack-egret/src/main.ts:159:19 Cannot find name 'Promise'.

aglice commented 7 years ago

另外,有些包,在依赖里没有添加信息,但build时却需要,是有什么考量吗?