umi-plugin-antd-theme
umi-plugin-antd-theme copied to clipboard
less building error: SyntaxError: (postcss) CssSyntaxError Unknown word (14662:1)
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.
@pccai you can use my fork with upgraded prettier
npm install crudo/umi-plugin-antd-theme#f0f0755
perfect!
@pccai you can use my fork with upgraded prettier
npm install crudo/umi-plugin-antd-theme#f0f0755
Why do I still get an error and the style doesn't work when I use this 。my antd's version is 4.22.7