less / less.js

Less. The dynamic stylesheet language.
http://lesscss.org
Apache License 2.0
16.99k stars 3.41k forks source link

window is not defined error #3796

Closed debmalya37 closed 1 year ago

debmalya37 commented 1 year ago

after running node , the terminal is throwing error as at :

less.js:11310 if (window.less) { ^

ReferenceError: window is not defined

zelmasbahi commented 1 year ago

Window is only defined on the browser. On node js env window is undefined

iChenLei commented 1 year ago

Don't use less-browser in nodejs environment.