Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Problem using latest bootstrap release with node-sass #2596

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

Problem using latest bootstrap release with node-sass #2596

joterr opened this issue Feb 12, 2019 · 2 comments

Comments

@joterr
Copy link

joterr commented Feb 12, 2019

  • NPM version (6.5.0):
  • Node version (v8.12.0):
  • Node Process ({ http_parser: '2.8.0', node: '8.12.0', v8: '6.2.414.66', uv: '1.19.2', zlib: '1.2.11', ares: '1.10.1-DEV', modules: '57', nghttp2: '1.32.0', napi: '3', openssl: '1.0.2p', icu: '60.1', unicode: '10.0', cldr: '32.0', tz: '2017c' }):
  • Node Platform (darwin):
  • Node architecture (x64):
  • node-sass version (node-sass 4.11.0 (Wrapper) [JavaScript] libsass 3.5.4 (Sass Compiler) [C/C++]):
  • npm node-sass versions ( ANGULAR_SPA ├── [email protected] └─┬ [email protected] ├─┬ @angular-devkit/[email protected] │ └── [email protected] deduped └── [email protected] deduped):

Current Behavior

Sass-loader (angular/webpack) fails loading latest bootstrap release, see the following error:

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

I've segregated the following code from bootstrap to test with https://www.sassmeister.com - this was successful.

$line-height-base:            1.5 !default;
$input-btn-line-height:       $line-height-base !default;
$input-line-height:                     $input-btn-line-height !default;
$input-btn-padding-y:         .375rem !default;
$input-padding-y:                       $input-btn-padding-y !default;

$input-height-inner-half:               calc(#{$input-line-height * .5em} + #{$input-padding-y}) !default;

.test-class {
  line-height: $input-height-inner-half;
}
@xzyfer
Copy link
Contributor

xzyfer commented Feb 12, 2019 via email

@joterr
Copy link
Author

joterr commented Feb 12, 2019

The error was a custom variable in our own code (see twbs/bootstrap#28240). Thanks!

@joterr joterr closed this as completed Feb 12, 2019
jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
Update Unicode doc after forcing UTF8/plain ASCII
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants