node-sass icon indicating copy to clipboard operation
node-sass copied to clipboard

Having node-sass build errors - invalid CSS

Open tanviropsec opened this issue 2 years ago • 1 comments

having this error while trying to build in jenkins -

Compiling SASS: /var/lib/jenkins/workspace/ui-package/node_modules/.bin/node-sass --importer /var/lib/jenkins/workspace/ui-package/tools/sass-node-importer.js style.scss { "status": 1, "file": "/var/lib/jenkins/workspace/ui-package/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss", "line": 369, "column": 46, "message": "Invalid CSS after "... floor(math": expected expression (e.g. 1px, bold), was ".div($grid-gutter-w"", "formatted": "Error: Invalid CSS after "... floor(math": expected expression (e.g. 1px, bold), was ".div($grid-gutter-w"\n on line 369 of ../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss\n from line 2 of src/CompanyProfile/CompanyProfile.scss\n from line 7 of style.scss\n>> vbar-padding-horizontal: floor(math.div($grid-gutter-width, 2)) !defa\n ------------------------------------------^\n" }

node version: 10.24.1 node-sass version: ^4.9.1 bootstrap-sass version: ^3.3.7

  • NPM version (npm -v): 6.14.2
  • Node version (node -v): 10.24.1
  • Node Process (node -p process.versions):
  • { http_parser: '2.9.4', node: '10.24.1', v8: '6.8.275.32-node.59', uv: '1.34.2', zlib: '1.2.11', brotli: '1.0.7', ares: '1.15.0', modules: '64', nghttp2: '1.41.0', napi: '7', openssl: '1.1.1k', icu: '64.2', unicode: '12.1', cldr: '35.1', tz: '2019c' }
  • Node Platform (node -p process.platform): darwin
  • Node architecture (node -p process.arch): x64
  • node-sass version (node -p "require('node-sass').info"): node-sass 4.14.1 (Wrapper) [JavaScript] libsass 3.5.5 (Sass Compiler) [C/C++]
  • npm node-sass versions (npm ls node-sass): [email protected] /Users/tmahboob/Documents/Projects/Leapfrog/ui_package ├── [email protected] └─┬ [email protected] └── [email protected] deduped

tanviropsec avatar Dec 20 '23 20:12 tanviropsec

You are using quite an old version, did it ever work what you are doing? What exactly are you building? The error message is a bit garbled and hard to read, do you have the actual project?

saper avatar Dec 22 '23 10:12 saper