Today, I encountered an error in packaging. It seems to be a css syntax error. After searching for a long time, I couldn’t find it. I saw a brother who said that it was a problem with the use of global variables in calc.
Problem code:
width: calc($squarelength / 2);
Correct code:
width: calc(#{
$squarelength} / 2);
Run yarn build again, oh! Sure enough, this is the problem!
https://blog.csdn.net/qq_41400330/article/details/128468320