NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.81k stars 3.86k forks source link

bug migration 12 #6940

Open jongomes opened 2 years ago

jongomes commented 2 years ago

Reproduction link

https://github.com/NG-ZORRO/ng-zorro-antd

Steps to reproduce

ng-zorro-antd\table\style\index.less (line 11, column 0)

What is expected?

./src/theme.less - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ModuleBuildError: Module build failed (from ./node_modules/less-loader/dist/cjs.js):

@table-header-icon-color-hover: darken(@table-header-icon-color, 10%); ---> @table-sticky-zindex: 1;

Compiled successfully.

What is actually happening?

./src/theme.less - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ModuleBuildError: Module build failed (from ./node_modules/less-loader/dist/cjs.js):

@table-header-icon-color-hover: darken(@table-header-icon-color, 10%); ---> @table-sticky-zindex: (@zindex-table-fixed + 1);

Not Compiled

Environment Info
ng-zorro-antd 12.0.1
Browser Edge
acsabi310 commented 2 years ago

same here. any update in this?

gitchaell commented 2 years ago

I need help to solve this

joaomvfsantos commented 2 years ago

In our case we have a file that overrides the variables in default.less and @zindex-table-fixed changed it's value from auto to 2. When we changed this value to 2 in our custom less file this error was solved.

acsabi310 commented 2 years ago

thanks, yepp, we had a copy-pasted less file from some earlier version for that "override purpose", and when we deleted the unneccessary rows from there the problem solved. So in our cases it is not an issue any more.

jhimelymendoza commented 2 years ago

same here. any update in this?