2016-08-07 104 views
2

我本來想將引導的一些mixin整合到離子2中,但它會產生一個我無法輕易修復的錯誤。bootstrap-sass with ionic 2

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 
    ----------------------------------^ 

從我app.core.scss文件:

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

從我package.json

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

感謝

回答

1

此行添加到Shared Variablessrc/theme/variables.scss

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

+0

謝謝,這個解決方案真的很有幫助。 –