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.

@use "sass:math";

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

.test {
  font-size: rem(24px)
}


Any reason why?
Was this page helpful?