I have created module specific less file in magento according to guide at below location.
app/code/Modulenamespace/Modulename/view/frontend/web/css/source/_module.less
Now I want to be able use magento 2 default ui library inside _module.less file. So how can I add reference to _lib.less file so that I can use all available mixins and variables inside my _module.less?
I know I can do that in _extend.less but how to in case of _module.less Currently
php bin/magento setup:static-content:deploy -f
gives error when using library.
Thanks in advance.
Solution has been found as I had defined my new variable and mixins in _extend.less and _module.less was not able to use those variables and therefore I was getting errors.