Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem using sass-loader (webpack) with latest bootstrap release #28240

Closed
joterr opened this issue Feb 12, 2019 · 3 comments
Closed

Problem using sass-loader (webpack) with latest bootstrap release #28240

joterr opened this issue Feb 12, 2019 · 3 comments

Comments

@joterr
Copy link

joterr commented Feb 12, 2019

Current behavior
Webpack fails loading sass files with latest sass-loader.

ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader/lib??ref--1-3!./node_modules/resolve-url-loader!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/styles.scss Module build failed: $input-height-inner-half: calc(#{$input-line-height * .5em} + #{$input-padding-y}) !default; ^ 0.625em*rem isn't a valid CSS value. in .../node_modules/bootstrap/scss/_variables.scss (line 492, column 97) @ ./src/styles.scss 4:14-268 @ multi ./src/styles.scss

Background
macOS
Angular
sass v1.17.0 (Sass 3.5.3 (Bleeding Edge))
sass-loader v7.1.0
node-sass v4.11.0

@csaeum
Copy link

csaeum commented Feb 12, 2019

Same Problem here with the New Realease

Fatal error: Exception: parse error: failed at &} { /home/xx/site/templates/sass/mixins/_badge.scss on line 5 (in /home/xx/site/modules/Sassify/vendor/leafo/scssphp/src/Parser.php line 128) #0 /home/xx/site/modules/Sassify/vendor/leafo/scssphp/src/Parser.php(169): Leafo\ScssPhp\Parser->throwParseError() #1 /home/xx/site/modules/Sassify/vendor/leafo/scssphp/src/Compiler.php(3448): Leafo\ScssPhp\Parser->parse('@mixin badge-va...') #2 /home/xx/site/modules/Sassify/vendor/leafo/scssphp/src/Compiler.php(1530): Leafo\ScssPhp\Compiler->importFile('/home/frawanbd/...', Object(Leafo\ScssPhp\Formatter\OutputBlock)) #3 /home/xx/site/modules/Sassify/vendor/leafo/scssphp/src/Compiler.php(1592): Leafo\ScssPhp\Compiler->compileImport(Array, Object(Leafo\ScssPhp\Formatter\OutputBlock)) #4 /home/xx/site/modules/Sassify/vendor/leafo/scssphp/src/Compiler.php(1335): Leafo\S in /home/xx/index.php on line 64

Fehler: Exception: parse error: failed at &} { /home/xx/site/templates/sass/mixins/_badge.scss on line 5 (in /home/xx/site/modules/Sassify/vendor/leafo/scssphp/src/Parser.php line 128)

#0 /home/xx/site/modules/Sassify/vendor/leafo/scssphp/src/Parser.php(169): Leafo\ScssPhp\Parser->throwParseError()
#1 /home/xx/site/modules/Sassify/vendor/leafo/scssphp/src/Compiler.php(3448): Leafo\ScssPhp\Parser->parse('@mixin badge-va...')
#2 /home/xx/site/modules/Sassify/vendor/leafo/scssphp/src/Compiler.php(1530): Leafo\ScssPhp\Compiler->importFile('/home/frawanbd/...', Object(Leafo\ScssPhp\Formatter\OutputBlock))
#3 /home/xx/site/modules/Sassify/vendor/leafo/scssphp/src/Compiler.php(1592): Leafo\ScssPhp\Compiler->compileImport(Array, Object(Leafo\ScssPhp\Formatter\OutputBlock))
#4 /home/xx/site/modules/Sassify/vendor/leafo/scssphp/src/Compiler.php(1335): Leafo\S

Diese Fehlermeldung wurde angezeigt wegen: Site ist im Debug-Modus. ($config->debug = true; => /site/config.php). Fehler wurde protokolliert.

@MartijnCuppens
Copy link
Member

@joterr & @csaeum,

Did you set $line-height-base, $input-btn-line-height or $input-line-height in rem? This should be set without unit.

@joterr
Copy link
Author

joterr commented Feb 12, 2019

That's it! Based on the error message I have not thought about own variables. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants