-
Notifications
You must be signed in to change notification settings - Fork 429
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
Angular 10 build warning #1003
Comments
there are more warnings:
|
This is because as of Angular 10.0, Angular will output a warning for all CommonJS dependencies, as they impact the tree-shaking of applications (this link explains it: https://web.dev/commonjs-larger-bundles/). To fix this warning all packages referenced in the warnings (dragula, contra/emitter and crossvent) need to be released as es2015 modules. |
With regards to Angular 10 compatibility there is also this error which can prevent builds from passing:
|
this could be fixed by changing it to |
Just a hotfix, until we don't get an update on this. You can add the flag |
Ditched it and moved to Angular Material's drag and drop. Much simpler to use. |
Angular Material CDK doesn't support drag and drop in a grid with wrapping, if you need that, ng2-dragula is still a valid choice. |
Will this be done in the next version? |
Month later and no reply?? Is this being done or has this package been abandoned? |
Fixed in 1008, awaiting version bump and release. Edit: Shoutout to @centigradeclemensP for providing the fix. |
I think the version of Angular in the demo folder needs to be updated in order for the build to pass. |
I tried to upgrade the demo's package.json but a slew of errors from ng-packagr occurred and I gave up. As well as what I think are red herrings like linting and unit test errors because it doesn't seem like those were kept up to date for the demo. I don't think I'm familiar enough with yarn and ng-packagr to fix the rest. |
Hi everyone! |
Sad to say that - I replaced ng2-dragula with ngx-bootstrap because of this warning. |
Hello Maintainer, Is the fix released ? |
Hello. Is there any date set for a new npm package for newer Angular Versions? Thanks for the great work anyway. :) Best regards. |
Seconding ulrichmueller's request. |
I want this too |
@cormacrelf, @valorkin, @jziggas - Just curious if this will ever get published to NPM? |
After upgrading to Angular 10 we get these warnings when doing builds:
The text was updated successfully, but these errors were encountered: