-
-
Notifications
You must be signed in to change notification settings - Fork 876
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 version 10 - CommonJS import warnings #1283
Comments
Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider sponsoring me |
Oh yeah that is not good at all, we should be shipping ESM to npm for the date adapters, thanks for bringing it to my attention! I will get this fixed in the next major version 😄 |
any update ? |
I am seeing the same warnings. Request you to kindly update your package. |
Hey folks, thanks for your patience on this, I've been a little bit busy the last few months but finally had the time this weekend to put out a fix. If you update to |
Thank you so much. The update did remove so many warnings. There is only one warning that's remaining though. WARNING in frontend\node_modules\angular-draggable-droppable_ivy_ngcc_\fesm2015\angular-draggable-droppable.js depends on '@m |
I've just noticed that as well when testing, please give |
nice ! it works for me right now |
Describe the bug
When building with the new angular version 10 angular-calendar triggers several warnings caused by using CommonJS dependencies instead of ecmascript module.
For example:
.../app.module.ts depends on angular-calendar/date-adapters/date-fns. CommonJS or AMD dependencies can cause optimization bailouts.
You can read more about why this might be a problem at angular.io.
I was wondering wether this could be fixed as it may improve bundle sizes significantly when building.
Minimal reproduction of the problem with instructions
Update project to angular 10.0 and run
ng build
.Screenshots
Versions
@angular/core
: 10.0.0angular-calendar
: 0.28.16The text was updated successfully, but these errors were encountered: