meteor-bootstrap
meteor-bootstrap copied to clipboard
Meteor 1.2 build error
Hi,
I am just trying to update my application to Meteor 1.2 and have hit a problem which I think I have tracked to the vicinity of the meteor-bootstrap package. After upgrading to Meteor 1.2, what seems to be happening is that meteor-bootstrap is still generating the custom.bootstrap.less
and custom.bootstrap.mixins.import.less
files (I deleted them locally to verify they were definitely being re-generated), but the new, re-written Meteor LESS processor can't find the generated files when importing the mixin file. Not sure if there is a timing issue (is the LESS processor running before nemo64:meteor-bootstrap?)
I am using the file structure suggested here: www.manuel-schoebel.com/blog/meteorjs-and-twitter-bootstrap---the-right-way
=> Errors prevented startup:
While processing files with less (for target web.browser):
client/lib/stylesheets/style.less:2: Unknown import: /client/lib/stylesheets/vendor/custom.bootstrap.mixins.import.less
The package system got a major rewrite in Meteor 1.2 and should make some of the hacks needed to make meteor-bootstrap work unnecessary. That said, these same changes are backward incompatible for meteor-bootstrap at least, and I have not had a chance to look at the new changes yet.
Pull requests appreciated.
Anyone figured out an alternative to this package? Unfortunate that a package with 52k downloads is backwards incompatible.
I know it sucks it hasn't been updated for 1.2 yet, but the thing is I have been the only one maintaining and at the moment I don't really get to do any Meteor work at the job these days. As I said before pull requests are appreciated and I promise to review any promptly.
:+1:
You can take a look at https://github.com/huttonr/bootstrap3
I had a similar symptom and, in my case, I found the solution in https://quip.com/RXFlAk9Rc2xI
"... Use @import "{}/file.import.less" to load a file from your app ..."
Does this work for you? @rjsmith
@andreftavares, thanks, I had the same problem and you solution worked.
Slightly more elaborated: use something like
@import "{}/client/lib/stylesheets/vendor/custom.bootstrap.mixins.import.less"
Hi @andreftavares https://github.com/andreftavares, I finally got to trying your workround, and yes, it does seem to work, thanks.
On 14 November 2015 at 14:11, Petr Kalinin [email protected] wrote:
@andreftavares https://github.com/andreftavares, thanks, I had the same problem and you solution worked.
Slightly more elaborated: use something like
@import "{}/client/lib/stylesheets/vendor/custom.bootstrap.mixins.import.less"
— Reply to this email directly or view it on GitHub https://github.com/Nemo64/meteor-bootstrap/issues/64#issuecomment-156699166 .