Closed dylanvdmerwe closed 3 years ago
I produced a solution like this. Try it if you wish.
angular.json
"architect": { "build": { "options": { "allowedCommonJsDependencies": [ "@ant-design/colors" ] }, } }
Could you please check the version of the '@ant-design/colors' in your node_modules? We have fixed the problem in lastest version (5.0.0).
package.json
in @ant-design/colors in node_modules says "version": "4.0.5"
. We are running ng-zorro-antd 10.1.1.
Try to update '@ant-design/icons-angular' to 10.2.0 or higher. It would depend on @ant-design/color@5.0.0.
We have no dependency on this. In our packages we only have: "ng-zorro-antd": "^10.1.1"
.
We have no dependency on this. In our packages we only have:
"ng-zorro-antd": "^10.1.1"
.
The dependency graph is: 'ng-zorro-antd' > '@ant-design/icons-angular' > '@ant-design/colors'.
Reinstalling ng-zorro-antd should also fix this if you don't have the version numbers locked.
Removed ng-zorro-antd. Readded it (10.1.2) and it looks like the warning has now gone away. Strange these packages were not updated.
I am closing this issue since this could be fixed by reinstalling. 😄
Steps to reproduce
When doing a
--prod
build the following warning is presented: .What is actually happening?
Shows a warning when it doesn't need to.