Skip to content

Commit

Permalink
FIX Error: Cannot divide by "px", number expected by "yarn encore prod"
Browse files Browse the repository at this point in the history
FIX generated error by "yarn encore prod" cmd in ibexa/commerce v3.3.22 and nodejs v14.0.0 postcss "^7.0.0" postcss-calc "^7.0.1"

yarn run v1.22.4
$ /var/www/html/project/ezplatform/node_modules/.bin/encore prod
Running webpack ...

I 1185 files written to public/assets/build
Error: Cannot divide by "px", number expected
at /var/www/html/project/ezplatform/ezplatform-admin-ui-content-edit-parts-css.4f0325aa.css:804:3
  • Loading branch information
mohamed-larbi-jebari authored Jun 24, 2022
1 parent 03c7510 commit 1be1fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bundle/Resources/public/css/enhancedimage-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $ibexa-color-font: #131c26;

$ibexa-border-radius: calculateRem(2px);

$base-font-size: 16px;
$base-font-size: 16;

@function calculateRem($size) {
$remSize: calc(#{$size} / #{$base-font-size});
Expand Down

0 comments on commit 1be1fe7

Please sign in to comment.