Skip to content

Commit 30b3ace

Browse files
committed
Fix compile error.
Latest build causes LESS compile error. ERROR in ./~/css-loader!./~/less-loader?strictMath&noIeCompat!./app/app.less Module build failed: error evaluating function `floor`: argument must be a number @ C:\...\node_modules\react-select\less\control.less (line 137, column 1) near lines: .Select-loading { .Select-spinner(16, @select-input-border-color, @select-text-color); margin-top: -8px; @ ./app/app.less 4:14-136 Based on the information in this Stack Overflow question http://stackoverflow.com/questions/21228897/how-to-fix-less-error-while-compiling-bootstrap, I was able to fix the error by using double parentheses. The solution seems odd, but it works.
1 parent 52b4248 commit 30b3ace

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

less/spinner.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
.square(@size);
88
box-sizing: border-box;
99
border-radius: 50%;
10-
border: floor(@size / 8) solid @orbit;
10+
border: floor((@size / 8)) solid @orbit;
1111
border-right-color: @satellite;
1212
display: inline-block;
1313
position: relative;

0 commit comments

Comments
 (0)