Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AntD4.0 样式编译失败 #10

Closed
Toototototo opened this issue Feb 4, 2020 · 2 comments
Closed

AntD4.0 样式编译失败 #10

Toototototo opened this issue Feb 4, 2020 · 2 comments

Comments

@Toototototo
Copy link

antd 版本: 4.0.0-rc.3
antd-pro-merge-less版本:2.0.28
错误原因:部分less变量未找到
报错信息:{ [Error: variable @btn-padding-sm is undefined]
message: 'variable @btn-padding-sm is undefined',
stack: undefined,
type: 'Name',
filename:
'D:\rainbow\demo-master\node_modules\antd-pro-merge-less\.temp\antd.less',
index: 204508,
line: 8483,
column: 22,
callLine: NaN,
callExtract: undefined,
extract:
[ ' .button-size(',
' @btn-height-sm; @btn-padding-sm; @font-size-base; @border-radius-base',
' );' ] }

image

@Matrixbirds
Copy link

同楼上环境

time-picker-selected-bg 未找到
{ [Error: variable @time-picker-selected-bg is undefined] message: 'variable @time-picker-selected-bg is undefined', stack: undefined, type: 'Name', filename:

@chenshuai2144
Copy link
Owner

更新到最新版本即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants