build#configuring-commonjs-dependencies #6027
-
I am including ng-zorro-antd inside angular version 10.2.0. I am following documentation of zorro, and use "ng add ng-zorro-antd", command, after installing successfully, When I am serving application locally using "ng serve -o". I am getting this warning message, WARNING in F:\angular\mart\smartshop\node_modules@ant-design\icons-angular_ivy_ngcc_\fesm2015\ant-design-icons-angular.js depends on '@ant-design/colors'. CommonJS or AMD dependencies can cause optimization bailouts. Can anyone here, explains what is wrong with this ? And how can i solve this warning message? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@ant-design/colors is a commonjs package, but it won't bring any harm. |
Beta Was this translation helpful? Give feedback.
-
Thank for letting me know. Nz-Zorro is one of my favorite UI Library. |
Beta Was this translation helpful? Give feedback.
-
We have release @ant-design/[email protected] which uses @ant-design/[email protected] that supports ESM. This warning message would be gone the next time you install. |
Beta Was this translation helpful? Give feedback.
@ant-design/colors is a commonjs package, but it won't bring any harm.
we will upgrade to support esm later
https://angular.io/guide/build#configuring-commonjs-dependencies