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

There seems to be an issue with less calc function #14

Open
yuxuan opened this issue Dec 22, 2020 · 2 comments
Open

There seems to be an issue with less calc function #14

yuxuan opened this issue Dec 22, 2020 · 2 comments

Comments

@yuxuan
Copy link

yuxuan commented Dec 22, 2020

To reproduce the issue, check this https://github.com/yuxuan/less-plugin-functions-issue.

The less code:

@padding: 12px;

.cls {
  padding-right: calc(@padding - var(--width));
}

if compile with LessPluginFunctions, it would throw Cannot read property 'numerator' of undefined error. If without the plugin, it compiled successfully.

Please help.

@yuxuan
Copy link
Author

yuxuan commented Dec 22, 2020

It seems due to this commit less/less.js@1800743

@wwwjun
Copy link

wwwjun commented Jun 7, 2021

So am I.😂

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

2 participants