chenshuai2144 / umi-plugin-antd-theme

🎨 Best theme plugin
https://preview.pro.ant.design/
MIT License
85 stars 29 forks source link

build theme error @ant-prefix is undefined #30

Open yzz3730781 opened 3 years ago

yzz3730781 commented 3 years ago

e.g: [LessError: variable @ant-prefix is undefined] { message: 'variable @ant-prefix is undefined', stack: undefined, type: 'Name', filename: 'E:\testProject\react-init-project\node_modules\_antd-pro-merge-less@2.0.12@antd-pro-merge-less\.temp\antd.less', index: 115, line: 4, column: 7, callLine: NaN, callExtract: undefined, extract: [ ' @import "../color/tinyColor";', ' .@{ant-prefix}-affix {', ' z-index: @zindex-affix;' ]

yzz3730781 commented 3 years ago

i cnpm install dependencies package after i delete project old node_module ,this problem happened

wu-xiaowei commented 3 years ago

我也遇到了 不知道怎么解决