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