You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Insert <button nz-button nzType="primary">...</button> in the template (Any value with nzType will give the same warning)
What is expected?
It should not give any warnings
What is actually happening?
It gives the warning in the console as
[NG-ZORRO]: deprecated: 'danger' value of 'nzType' in Button is going to be removed in 12.0.0. Please use 'nzDanger' instead
Environment
Info
ng-zorro-antd
10.2.1
Browser
Chrome
My guess is that it is caused by type NzLegacyButtonType = 'primary' | 'default' | 'dashed' | 'danger' | 'link' | 'text' | null; which contains danger value and triggers this warning.
I was not able to edit the file in node_modules after npm runs postinstall and therefore was not able to check if removing the danger value solves the issue.
The text was updated successfully, but these errors were encountered:
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-ivy-pzsfrs?file=src/app/app.component.ts
Steps to reproduce
<button nz-button nzType="primary">...</button>
in the template (Any value withnzType
will give the same warning)What is expected?
It should not give any warnings
What is actually happening?
It gives the warning in the console as
My guess is that it is caused by
type NzLegacyButtonType = 'primary' | 'default' | 'dashed' | 'danger' | 'link' | 'text' | null;
which containsdanger
value and triggers this warning.I was not able to edit the file in
node_modules
afternpm
runspostinstall
and therefore was not able to check if removing thedanger
value solves the issue.The text was updated successfully, but these errors were encountered: