Closed sawa-ko closed 2 years ago
I try to use ng build
to reproduce but no warning about css shown, please make sure you have configured ng-zorro-antd like the official doc
@simplejason, I also encounter this issue. It started occurring when I upgraded Angular to 12.2.12
and Node.js to v16.13.0. I haven't changed any ng-zorro related code or configurations.
@simplejason, I also encounter this issue. It started occurring when I upgraded Angular to
12.2.12
and Node.js to v16.13.0. I haven't changed any ng-zorro related code or configurations.
I'm using the same as well, and I'm testing with a blank Angular app with ng-zorro installed.
form 里面的 index.css
样式发布得有问题啊,我拉最新的 ng-zorro-antd npm run build:lib
生成之后的不是这样
I have a same problem after upgrading Angular 11 to Angular 12 with ng-zorro-antd upgrading.
To debug this problem i create a new blank project by Getting Started manual and start to compare a configurations and dependecies. Few minutes later i had seen a difference in angular.json
files. Manual merge of these two configurations solve this problem/
example of changes:
Merging of angular.json
is project-specific and i can't help you to made this in your project
@simplejason I have tested with multiple version of @angular/cli@12.x.x The latest version that will not have the error mentioned is @angular/cli@12.1.4, anything above that will have the error when ng build. @kaname-png please try with @angular/cli@12.1.4, until the issues are fixed.
Reproduction link
No.
Steps to reproduce
What is expected?
An application compilation without any warnings.
What is actually happening?
I receive some warnings about skipped rules in some Ant Design components.