2016-08-07 6 views
2

ブートストラップのミックスインをイオン2に統合したいと思っていましたが、簡単に修正できないというエラーが発生します。私package.jsonからイオン性のブートストラップ・サス2

@import "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap"; 

:私のapp.core.scssファイルから

node_modules\bootstrap-sass\assets\stylesheets\bootstrap\_variables.scss 
Error: Incompatible units: 'px' and 'rem'. 
     on line 214 of node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss 
>> $input-height-base:    ($line-height-computed + ($padding-base-verti 
    ----------------------------------^ 

"dependencies": { 
    "bootstrap": "^3.3.7", 
    "bootstrap-sass": "^3.3.7", 

おかげで

答えて

1

src/theme/variables.scss

01に Shared Variablesセクションに次の行を追加します。

$font-size-base: 14px !default;

+0

ありがとうございます。このソリューションは本当に役に立ちます。 –