-
Notifications
You must be signed in to change notification settings - Fork 41
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
Error when extracting variables with values containing calc function #53
Comments
The same is happening to me when moved to package sass (Dart Sass), it wasn't happening on node-sass |
It seems it could be caused by some mixture of units given as parameter to calc(), e.g. the following break as indicated on the issue:
where as these do not break:
From the above, it breaks when there's a mixture of units that include |
From @donar06 code example if I do it the old way without the
I guess that answers the issue, maybe handling the error in a different way instead of throwing the exception without catching it would be an enhancement. |
@donar06, if you haven't gotten around that issue try string interpolation around the cal() function:
|
Yes, this was temporary solution, thank you. |
Context
When using sass-extract on NodeJS, at least together with package sass, it fails on
renderSync
function call if variables string contains values withcalc
function.Example:
Dependencies:
Expected result
It should handle calc function correctly and extract it as regular string value
Actual result
The text was updated successfully, but these errors were encountered: