Angular version 10 - CommonJS import warnings
See original GitHub issueDescribe 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.16- Browser name and version: any
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Fix CommonJS or AMD dependencies can cause optimization ...
CommonJS or AMD dependencies can cause optimization bailouts. By importing from the root module instead, the warning is no longer present during ...
Read more >Warnings about CommonJS imports | angular 10 new features
Hello Friends,Welcome to Angular 10 full tutorial by sahosoft solutions.Please register on www.sahosoft.com for Angular online class with ...
Read more >Angular 10 is available and here's what you should know ...
Starting from Angular v10, CommonJS import warnings alert developers when a dependency packaged with CommonJS could result in larger, ...
Read more >Get to know the new Angular version 10! - HostArmada
Angular 10 includes warnings for CommonJS imports, which will alert you when a dependency package with CommonJS may lead to more extensive and...
Read more >Version 10 of Angular Now Available | by Stephen Fluin
Version 10.0.0 is here! ... Warnings about CommonJS imports ... Starting with version 10, we now warn you when your build pulls in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
nice ! it works for me right now
I’ve just noticed that as well when testing, please give
0.28.18
a go, it should get rid of it 😄