首页 新闻 赞助 找找看

NPM包 ng2-dragula 报错

0
悬赏园豆:5 [已解决问题] 解决于 2019-10-22 14:05

ERROR in node_modules/ng2-dragula/dist/MockDrake.d.ts(41,5): error TS2416: Property 'on' in type 'MockDrake' is not assignable to the same property in base type 'DrakeWithModels'.
Type '(event: string, callback: Function) => void' is not assignable to type '(events: string, callback: Function) => Drake'.
Type 'void' is not assignable to type 'Drake'.

过客非归的主页 过客非归 | 初学一级 | 园豆:117
提问于:2019-01-16 18:43
< >
分享
最佳答案
0

我跟你一样的问题,已经解决了,参考的这个解决的:https://stackoverflow.com/questions/53064576/ng2-dragula-in-angular7-failed-to-compile?r=SearchResults

收获园豆:5
Brian_Huang | 菜鸟二级 |园豆:319 | 2019-09-28 08:58
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册