-
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
[bug report] Types definition issue #912
Comments
Same issue here using:
Error when building: |
@fttx However, It worked for me when I used @types/[email protected] @chris246 check your package-lock.json file for the version number. |
same issue. Manually add "@types/dragula": "2.1.33" into package.json fixed on my side. |
Not sure if you mean to add it as a dependency or a resolution but the resolution fixed it for me. "resolutions": {
"@types/dragula": "2.1.33"
} |
This problem is very relevant now. Please fix it as soon as possible. |
I am using angular 6 so I can't exactly go back to an older version of angular just for the sake of using dragula. in the node_modules\ng2-dragula\dist\MockDrake.d.ts file, then in the same file on the line 41 change: |
…ing return type from void to any.
I have made a change in a branch, I will test it later today and if it works I will submit a PR |
@wendelstam |
Adding the resolution from #912 (comment) worked for me |
@wendelstam still same issue. after your commit. issue is in and in MockDrake.d.ts this file |
Fix for valor-software#912
How soon will this be fixed? If you're not going to pin to a very specific version you need to really make sure you aren't breaking others. I'm days away from a production deployment and need to make a small configuration change that I can no longer get a build working for due to this issue. |
Guys. Patch released. But please read. The reason many libs use semver for secondary dependencies is twofold: so that other dependents can be satisfied using the same resolved version, and so that we don't need to run a patch release every time a dep changes. Library authors push the responsibility for reproducible builds onto consumers. That's you. If you don't do this job, you will get problems. This is how it works for almost every single NPM package. Yarn and package-lock.json were invented to do the job for you. Every JS developer needs to be using one of them because trusting semver for your own production releases is plain irresponsible. I can't even reproduce this without implementing the workaround(s) in reverse. Please everyone check that you have that and it's working, and that you aren't doing If you do, we'll all be less frustrated by issues like this. I know the comments here represent a small proportion of total downloads, so looks like everyone else is OK. Big up to @rkgoswami for suggesting we open an issue on bevacqua/dragula though. Hilarious. |
There is so much information on npm that it's easy to miss the important things and don't see the big picture, thanks |
Hi, |
Oh, and you guys are going to have to remove the workarounds you’ve done. |
try to change in /node_modules/ng2-dragula/dist/MockDrake.d.ts line 41 |
This also worked for me now. After almost two days of no progress. Thanks. |
Describe the bug (required)
When i run tsc on my project i get:
To Reproduce (required)
Install the packages at the version below and run tsc
Versions (required)
If i change the line 42 of node_modules\ng2-dragula\dist\MockDrake.d.ts from
on(event: string, callback: Function): void;
to
on(event: string, callback: Function): Drake;
everything works
Also see: DefinitelyTyped/DefinitelyTyped#15422
The text was updated successfully, but these errors were encountered: