less building error: SyntaxError: (postcss) CssSyntaxError Unknown word (14662:1)
pccai opened this issue · 8 comments
https://github.com/ant-design/ant-design/blob/master/components/input-number/style/index.less
@input-number-prefix-cls: ~'@{ant-prefix}-input-number';
@form-item-prefix-cls: ~'@{ant-prefix}-form-item';
INFO 💄 build theme
🔩 less render start!
SyntaxError: (postcss) CssSyntaxError Unknown word (14662:1)
14660 | ;
14661 |
14662 | @input-number-prefix-cls: ~'@{ant-prefix}-input-number';
| ^
14663 |
14664 | @input-number-wrapper-cls: @input-number-prefix-cls, ~'@{input-number-prefix-cls}-affix-wrapper';
14665 |
不能以@开头吗
@chenshuai2144 Is there any progress on this one? Plugin is not working with Ant-design 4.19.0
or newer.
研究了一下,是 antd-pro-merge-less 里 prettier 版本过低造成的,具体位置是 https://github.com/chenshuai2144/antd-pro-merge-less/blob/master/loopAllLess.js#L73, 我现在临时解决方法是使用 patch-package 来打个补丁,直接返回 content,不进行 prettier
merge-less依赖: "prettier": "^1.15.3",
是不是可以升级几个版本?
@pccai you can use my fork with upgraded prettier npm install crudo/umi-plugin-antd-theme#f0f0755
@pccai you can use my fork with upgraded prettier
npm install crudo/umi-plugin-antd-theme#f0f0755
tks.