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

Having node-sass build errors - invalid CSS #3387

Open
tanviropsec opened this issue Dec 20, 2023 · 1 comment
Open

Having node-sass build errors - invalid CSS #3387

tanviropsec opened this issue Dec 20, 2023 · 1 comment

Comments

@tanviropsec
Copy link

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):
    mm-ui-services@23.12.204 /Users/tmahboob/Documents/Projects/Leapfrog/ui_package
    ├── node-sass@4.14.1
    └─┬ rollup-plugin-scss@0.3.0
    └── node-sass@4.14.1 deduped
@saper saper added the Node 10 label Dec 22, 2023
@saper
Copy link
Member

saper commented Dec 22, 2023

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?

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

No branches or pull requests

2 participants