less / less.js

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

Variable @supports is undefined on v3.10.x #3465

Closed awebdev closed 4 years ago

awebdev commented 4 years ago

Looks like support for CSS's "@support" is broken after v3.0.4, any ideas? change-log doesn't seem to have anything about it

Screen Shot 2020-01-17 at 5 38 24 PM
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

matthew-dean commented 4 years ago

I'm surprised there's not a specific test for this. Looks like it was missed. Will investigate.

matthew-dean commented 4 years ago

@awebdev I'm not sure what's going on for you, but there are lots of tests for @supports, and using your example on the latest version of Less (3.12.2), it compiled fine. 🤷‍♂️

RajaJaganathan commented 3 years ago

Still, I'm getting the same error on v3.12.2 with less-loader v7.1.0

Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/less-loader/dist/cjs.js):

/* csslint ignore:start */
@supports ( -webkit-appearance: none ) or ( appearance: none )
        ^
Variable @supports is undefined