Skip to content
This repository has been archived by the owner on Aug 27, 2018. It is now read-only.

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

Open
mbabauer opened this issue Sep 3, 2014 · 8 comments · May be fixed by #32
Open

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

mbabauer opened this issue Sep 3, 2014 · 8 comments · May be fixed by #32

Comments

@mbabauer
Copy link

mbabauer commented Sep 3, 2014

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
Copy link

I have the same error...

@mbabauer
Copy link
Author

mbabauer commented Sep 4, 2014

It seems like this might be a know issue with the new package manager in Meteor 0.9.xxx, as per the discussion here: #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
Copy link
Contributor

same problem, same workaround

@pascoual
Copy link

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
Copy link

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

@udondan udondan linked a pull request Oct 12, 2014 that will close this issue
@pascoual
Copy link

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

@zeroasterisk
Copy link
Contributor

FTW!

thanks @pacoual

@simison
Copy link
Owner

simison commented Dec 18, 2014

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants