React build fails when sass uses calc and var together

This works when a calc() is included to calculate the substraction and when spaces are include between operators.

transform: translate(calc(calc((var(--i) - 1)) * -100%));