deepwell / meteor-bootstrap-datepicker

Meteor package of bootstrap-datepicker
6 stars 9 forks source link

mrt add bootstrap-datepicker has error message. cannot find css js file #4

Open kevingzhang opened 10 years ago

kevingzhang commented 10 years ago

The output like this

..... Done installing smart packages

Stand back while Meteorite does its thing

Done installing smart packages

Ok, everything's ready. Here comes Meteor!

=> Errors while scanning packages:

While building package bootstrap-datepicker: error: File not found: lib/bootstrap-datepicker/js/bootstrap-datepicker.js error: File not found: lib/bootstrap-datepicker/css/datepicker.css

krishnaff commented 10 years ago

I have tried manually adding the bootstrap-datepicker.js and datepicker.css files exactly into the above lib locations. It still throws the same error.

Any help on this please?

kevingzhang commented 10 years ago

I did too, put code manually, won't work as insaneinc01 mentioned.

krishnaff commented 10 years ago

OK, I got this working manually using bootstrap-datepicker.js and datepicker.css from http://www.eyecon.ro/bootstrap-datepicker/ and dropping these files into the client folder. Used the markup as mentioned in that page along with the following template helper:

Template.templatename.rendered = function() { $('#datepicker').datepicker(); }

Hope this helps someone.

Also, I didn't understand why none of the following worked: https://github.com/eternicode/bootstrap-datepicker http://vitalets.github.io/bootstrap-datepicker/ http://bootstrap-datepicker.readthedocs.org/en/latest/

I remember, one of these threw a "ReferenceError: window is not defined" error. (something to do with jquery ui, i'm not sure?). Though my problem for now is solved, It would be nice to see some explanation for learning sake. Thanks!

blainehansen commented 10 years ago

This is a serious problem, and he seriously needs to fix it. This package is worthless with this problem hanging.

deepwell commented 10 years ago

I double checked and I cannot reproduce this problem.

To be sure, are you using the bootstrap-datepicker package? or the boostrap-datepicker2 package? This is the repo for boostrap-datepicker2, since bootstrap-datepicker didn't work for me.

eeiswerth commented 10 years ago

Just updated to Meteor 0.8.2 and did a mrt add bootstrap-datepicker2 and I see the following:

While building package bootstrap-datepicker: error: File not found: lib/bootstrap-datepicker/js/bootstrap-datepicker.js error: File not found: lib/bootstrap-datepicker/css/datepicker.css

Any ideas?

kevingzhang commented 10 years ago

I had this issue long time ago. My solution ( which may not be a good solution) is manually go to github, copy the source code locally into the package folder. In this case, the bootstrap-datepicker is "your own code", which means won't be automatically upgrade. It's OK for me.

On Tue, Jun 24, 2014 at 10:45 AM, eeiswerth notifications@github.com wrote:

Just updated to Meteor 0.8.2 and did a mrt add bootstrap-datepicker2 and I see the following:

While building package bootstrap-datepicker: error: File not found: lib/bootstrap-datepicker/js/bootstrap-datepicker.js error: File not found: lib/bootstrap-datepicker/css/datepicker.css

Any ideas?

— Reply to this email directly or view it on GitHub https://github.com/deepwell/meteor-bootstrap-datepicker/issues/4#issuecomment-47004488 .

╭︿︿︿╮ {/ o o /} ( (oo) ) Kevin G. Zhang :) ︶ ︶︶

eeiswerth commented 10 years ago

Definitely not an ideal solution, but it does work. Thanks.

pociej commented 9 years ago

you can use bootstrap3-datetimepicker(package working) , it is extension of datepicker, if dont need timepicker you can simply set : pickTime: false;