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

Cannot read property 'numerator' of undefined #155

Open
coselm opened this issue Jul 28, 2020 · 7 comments
Open

Cannot read property 'numerator' of undefined #155

coselm opened this issue Jul 28, 2020 · 7 comments

Comments

@coselm
Copy link

coselm commented Jul 28, 2020

报错:[$ node scripts/start.js
Failed to compile.

./node_modules/antd/lib/drawer/style/index.less
Module build failed:

  /* stylelint-disable-next-line function-calc-no-invalid */
  padding-right: calc(@drawer-header-close-padding - var(--scroll-bar));
^

Cannot read property 'numerator' of undefined]([url](url
6P{C_PKV(J2(}I_1Y@Z%ZLO
))

@11039180068
Copy link

遇到了同样的问题 不知道怎么解决

@11039180068
Copy link

11039180068 commented Sep 1, 2020

ant-design/ant-design#23125

@Mz1006
Copy link

Mz1006 commented Sep 3, 2020

我也遇到了一样的问题,如果删除这一句代码就可以正常工作了。但是团队开发不能要求所有人都去删除

@11039180068
Copy link

我也遇到了一样的问题,如果删除这一句代码就可以正常工作了。但是团队开发不能要求所有人都去删除

ant-design/ant-design#23125

@zxkws
Copy link

zxkws commented Sep 10, 2020

image
我也是antdV3升级V4遇到这个问题,删掉这行代码就可以运行了,请问有其他解决办法吗?还有这个不是写了 /* stylelint-disable-next-line function-calc-no-invalid */,为什么还会有问题呢

@xiaobao66
Copy link

image
我也是antdV3升级V4遇到这个问题,删掉这行代码就可以运行了,请问有其他解决办法吗?还有这个不是写了 /* stylelint-disable-next-line function-calc-no-invalid */,为什么还会有问题呢

查看下你的less版本,不要使用最新的^3.12,我使用3.10.3没有报错

@L924553229
Copy link

padding-right: calc(***) 修改为 padding-right: ~”calc(***)“

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

6 participants