Open rafaelncarvalho opened 3 years ago
I can't reproduce your problem, can you provide a repo that can be reproduced?
I have similar problem, only with dark theme. Example errors:
Failed to compile.
./node_modules/antd/es/empty/style/index.less
&-ellipse {
fill-opacity: 0.08;
^
Error evaluating function `if`: Cannot read property 'eval' of undefined
in C:\**\antd\es\empty\style\index.less (line 59, column 6)
Failed to compile.
./node_modules/antd/es/button/style/index.less
.button-color(@color; @background; @border) {
color: @color;
^
Error evaluating function `if`: Cannot read property 'eval' of undefined
in C:\**\antd\es\button\style\mixin.less (line 143, column 2)
I created a repo here: https://github.com/donwojtallo/react-enterprise-starter-pack/tree/antd-theme-issue (use antd-theme-issue
branch)
I have similar problem, only with dark theme. Example errors:
Failed to compile. ./node_modules/antd/es/empty/style/index.less &-ellipse { fill-opacity: 0.08; ^ Error evaluating function `if`: Cannot read property 'eval' of undefined in C:\**\antd\es\empty\style\index.less (line 59, column 6)
Failed to compile. ./node_modules/antd/es/button/style/index.less .button-color(@color; @background; @border) { color: @color; ^ Error evaluating function `if`: Cannot read property 'eval' of undefined in C:\**\antd\es\button\style\mixin.less (line 143, column 2)
I created a repo here: https://github.com/donwojtallo/react-enterprise-starter-pack/tree/antd-theme-issue (use
antd-theme-issue
branch)
Anyone can help for fix it?
Also getting this error
我也是这个问题 Failed to compile ./node_modules/antd/es/empty/style/index.less
&-ellipse {
fill: @white;
^
Error evaluating function if
: Cannot read property 'eval' of undefined
I'm getting this error when using customize-cra
this is my config-overrides.js
if I remove the dark theme, it works just fine. With compact theme works too