Sass function to calc rem size - compilation error

Until today my function was working. Now I get compilation error
Compilation Error
Error: 2 arguments required, but only 1 was passed.
Compilation Error
Error: 2 arguments required, but only 1 was passed.
@use "sass:math";

@function rem($size) {
$remSize: math.div($size, 16px);
@return #{$remSize}rem;
}

.test {
font-size: rem(24px)
}
@use "sass:math";

@function rem($size) {
$remSize: math.div($size, 16px);
@return #{$remSize}rem;
}

.test {
font-size: rem(24px)
}
Any reason why?
0 Replies
No replies yetBe the first to reply to this messageJoin