-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property 'on' in type 'MockDrake' is not assignable to the same property in base type 'DrakeWithModels' #913
Comments
same problem angular 7.0.0 |
I've solved this problem by adding |
I've solved this problem by |
If you go with Yarn add this as a workaround to your package.json:
|
same problem today, Angular 6.1.0 |
[email protected] expects @types/dragula@^2.1.33, so I solved it by globally uninstalling @types/dragula (which was version 2.1.34) and installing 2.1.33 instead. |
@adlerzz 's solution definitely helped |
@petterlabraaten can you tell me how to do it ? because i can't find the @types/dragula in my package.json |
npm i @types/dragula |
@Razor164 even after installing the types dragula, reconfigure the package.json to 2.1.33 do the npm install again i am facing the same problem how did you solve it ? |
I did @mba3gar are you sure you installed 2.1.33? you can run |
am using the following dragula for ionic mobile application, it works fine and smoothly on web with ionic serve but once i push it to mobile i face the same issue with MockService thing. |
Go to your package.json of your project and add |
Thank you guys my problem is fixed @skydever @rkgoswami @Razor164 well appreciated |
the same problem :( |
The problem is interface declaration in index.d.ts:
MockDrake.d.ts constructor no is valid:
It needs to be changed by:
|
But please verify if the method
|
It like interface mistake: on method return void:
It is the interface that should be changed, sorry
|
Then we should raise a issue on |
I rolled back to UPDATE: here's my subdependency versions, package versions, and global install versions in case that provides any insight into why I'm no longer getting the error with the combination above subdependencies of ng-dragula:
package versions:
and relevant global installs: maybe this provides some context/help, @carl-parrish? |
I didn't have this problem in 7.0.0. But now I do. I havent changed a thing. super weird. |
running into the same problem but so far setting to @types/[email protected] isn't working (with [email protected]) |
100% solution Since [email protected] and great has dependencies "@types/dragula": "^2.1.33". |
Please see #912 (comment) |
just remove ng-dragula from package.json file . Now run this cli command which will bring latest ng-dragula "^2.1.1". It solves the problem . |
Worked for me. Thank you @adlerzz |
This issue was not there when I started using this library but later on, found this issue (shown in attachment below):

Issue is very simple:
Drag
interface has a methodon(events: string, callback: Function): Drake;
=> fileindex.d.ts
DrakeWithModels
extendsDrake
MockDrake
implementsDrakeWithModels
, where methodon(events: string, callback: Function): void;
is overriden but the return type is changed, which is not allowed.Fix is simple change the return type for method
on
in InterfaceDrag
to void;The text was updated successfully, but these errors were encountered: