bootstrap3-less icon indicating copy to clipboard operation
bootstrap3-less copied to clipboard

Error finding /packages/bootstrap3-less/bootstrap.import.less

Open mbabauer opened this issue 10 years ago • 8 comments

When I start my app I get the following:

While building the application: client/styles/style.less:3:1: Less compiler error: '/packages/bootstrap3-less/bootstrap.import.less' wasn't found

=> Your application has errors. Waiting for file change.

My style.less has the following: // Everything should be a .import.less file and you should import them all into this file // Which is then compiled to style.css @import "/packages/bootstrap3-less/bootstrap.import.less"; // Override bootstrap variables @import "variables.import.less"; // Custom Mixins @import "mixins.import.less"; // Base styles @import "../views/base.import.less"; // Template Specific Styles

Any help would be appreciated.

mbabauer avatar Sep 03 '14 21:09 mbabauer

I have the same error...

FickleLife avatar Sep 04 '14 18:09 FickleLife

It seems like this might be a know issue with the new package manager in Meteor 0.9.xxx, as per the discussion here: https://github.com/simison/bootstrap3-less/issues/29. Something to do with not being able to follow a symbolic link or something.

I can tell you what I did to get around it was to manually copy the bootstrap.import.less and all the /less folder under my old Meteor/Meteorite 0.8 project into my new project under /client/styles then modified the bootstrap.import.less to fix the paths. This was the only file I had to correct. It's not the most elegant of solutions, but it works for me...at least until the package developers can come up with a better plan.

I saw someone else on StackOverflow mentioning adding the package manually to /packages and adding it that way. I did not try the approach, so not sure how well it works.

mbabauer avatar Sep 04 '14 22:09 mbabauer

same problem, same workaround

zeroasterisk avatar Sep 09 '14 03:09 zeroasterisk

In Meteor 0.9.x.x package are not full copied in your build web site. So the package need to be updated.

Waiting solution :

mkdir -p ./client/css/0-bootstrap3-less/lib
cd  ./client/css/0-bootstrap3-less/lib
svn export https://github.com/simison/bootstrap3-less/trunk/lib/less ./less
svn export https://github.com/simison/bootstrap3-less/trunk/lib/fonts ./fonts

Edit the path in the bootstrap less file you've created with:

// defines where the package is                                                 
@bootstrap3-less-root: "/client/css/0-bootstrap3-less";

pascoual avatar Sep 18 '14 10:09 pascoual

I got around this by moving index.less from /client up to /. Is there a better way?

callahanp avatar Oct 07 '14 21:10 callahanp

Good alternative: https://github.com/Nemo64/meteor-bootstrap !

pascoual avatar Dec 18 '14 18:12 pascoual

FTW!

thanks @pacoual

zeroasterisk avatar Dec 18 '14 19:12 zeroasterisk

Yup, I'm also recommending that package if you're using Meteor 0.9+.

simison avatar Dec 18 '14 23:12 simison