Skip to content

TypeError: console.warning is not a function: lessc fails to output --strict-math warning #3281

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

Closed
jdufresne opened this issue Jul 11, 2018 · 1 comment
Assignees
Labels

Comments

@jdufresne
Copy link

jdufresne commented Jul 11, 2018

The warning here:

console.warning('--strict-math is deprecated. Use --math=strict');

Does not display. Instead I receive the error TypeError: console.warning is not a function.

Observe:

$ ./node_modules/.bin/lessc -sm=on
TypeError: console.warning is not a function
    at .../node_modules/less/bin/lessc:485:25
    at Array.filter (<anonymous>)
    at .../node_modules/less/bin/lessc:353:17
    at Object.<anonymous> (.../node_modules/less/bin/lessc:545:3)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)

Additional info:

$ ./node_modules/.bin/lessc --version
lessc 3.7.0 (Less Compiler) [JavaScript]
$ npm --version
5.6.0
$ node --version
v8.11.3
@calvinjuarez calvinjuarez self-assigned this Jul 11, 2018
calvinjuarez added a commit to calvinjuarez/less.js that referenced this issue Jul 11, 2018
@calvinjuarez
Copy link
Member

@jdufresne Thanks for reporting!

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

No branches or pull requests

2 participants