question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

less compilation failed after installing v2.4 from bower

See original GitHub issue

We 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:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
elboletairecommented, Oct 6, 2017

Also, why the hell are all the bower_components packaged with the plugin? This is insane 😞

2reactions
gauravdaxinicommented, Oct 18, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found