less compilation failed after installing v2.4 from bower
See original GitHub issueWe have been using the admin-lte from quite long time. But, when we build our app last week and compiled the LESS file which depends on admin-lte LESS files, it failed.
ERROR
$ lessc assets/css/less/app.less assets/css/app.min.css --clean-css="--s1"
FileError: '../../../bower_components/bootstrap/less/mixins.less' wasn't found. Tried - {project_path}\assets\vendor\admin-lte\bower_components\bootstrap\less\mixins.less,{project_path}\bower_components\bootstrap\less\mixins.less,..\..\..\bower_components\bootstrap\less\mixins.less in {project_path}\assets\vendor\admin-lte\build\less\skins\skin-blue-light.less on line 5, column 1:
4 */
5 @import "../../../bower_components/bootstrap/less/mixins.less";
6 @import "../../../bower_components/bootstrap/less/variables.less";
Since bower installed the latest admin-lte(v2.4) which does not include the bower-components folder, when we compiled the LESS file it didn’t get the bootstrap mixins and variables file from bower_components folder.
Please help to fix this.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:12 (1 by maintainers)
Top Results From Across the Web
fixing version problems in bower after installing Angular Material
I read this was to do with the version of angular I'm using so I updated angular and then angular-animate to 1.6. However...
Read more >Bower — a package manager for the web
Bower can manage components that contain HTML, CSS, JavaScript, fonts or even image files. Bower doesn't concatenate or minify code or do anything...
Read more >Grunt fails on initial run after npm install - Roots Discourse
I just installed WordPress 3.9.1 clean and activated the Roots 7 theme. Ran the npm install from the theme folder, and then typed...
Read more >Beginners Guide: Getting Started with Bower Package Manager
This article will guide you through basic bower usage and advanced usage for a team environment. I will also share my personal workflow...
Read more >LESS - Quick Guide - Tutorialspoint
Compile style.less file to style.css by using the following command − lessc style.less style.css. Less Installation. When you run the above command, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also, why the hell are all the bower_components packaged with the plugin? This is insane 😞
Thanks @almasaeed2010 for providing a quick fix. However, I’m still facing the issue.
You have forgotten to update the bootstrap less dependency PATH in skin’s less file (some less file still contains
../../../bower_components/bootstrap/less/mixins.less
path which does not exist) which is causing the failure while compiling the less file.Please help to fix this.