Semantic-ui: Error evaluating function `round`: argument must be a number

Created on 30 Dec 2017  路  1Comment  路  Source: Semantic-Org/Semantic-UI

Scenario:

  • I ejected from create-react-app
  • Configured webpack in order to include less-loader so that I can get the custom theming (following this blog post: https://medium.com/webmonkeys/webpack-2-semantic-ui-theming-a216ddf60daf)
  • Successfully configured everything and webpack now sees the custom theme, however I am receiving this issue:
@relativeLarge   : unit( round(@largeSize * @emSize) / @emSize, em);
@relativeBig     : unit( round(@bigSize * @emSize) / @emSize, em);
                       ^
Error evaluating function `round`: argument must be a number
in node_modules\semantic-ui-less\themes\default\globals\site.variables (line 403, column 25)

I have the following libs installed:
less: ^2.7.3
less-loader: ^4.0.5
semantic-ui-less: ^2.2.12
semantic-ui-react: ^0.77.1

Most helpful comment

Closing this issue.
The problem was I included the strictMath option to the less loader and set it to true, hence the problem with the calculations.

>All comments

Closing this issue.
The problem was I included the strictMath option to the less loader and set it to true, hence the problem with the calculations.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kntmrkm picture kntmrkm  路  3Comments

batata004 picture batata004  路  3Comments

iPaoo picture iPaoo  路  3Comments

miguelmota picture miguelmota  路  3Comments

playgithub picture playgithub  路  3Comments