simison / bootstrap3-less

(deprecated) Bootstrap 3 for Meteor, with Less.
60 stars 19 forks source link

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

Open mbabauer opened 10 years ago

mbabauer commented 10 years ago

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.

FickleLife commented 10 years ago

I have the same error...

mbabauer commented 10 years ago

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.

zeroasterisk commented 10 years ago

same problem, same workaround

pascoual commented 10 years ago

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";
callahanp commented 10 years ago

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

pascoual commented 9 years ago

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

zeroasterisk commented 9 years ago

FTW!

thanks @pacoual

simison commented 9 years ago

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