Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'dates' of undefined in bootstrap-datepicker #32

Open
ahblay opened this issue Mar 2, 2018 · 1 comment

Comments

@ahblay
Copy link

ahblay commented Mar 2, 2018

I am trying to add datepicker to a form, but every time I run the code I get the message:

Uncaught TypeError: Cannot read property 'dates' of undefined.

The error is linked to bootstrap-datepicker-en-CA.min.js, which I added as a cdn at the top of my html file. I've tried adding both dropdowns.less and sprites.less, but that does not seem to resolve my problem. None of the existing threads about this issue seem to help, although I am pretty new to this arena.

Are there any other dependencies or downloads that I need in order for this to run properly? Can I do everything through cdns, or am I missing an important step somewhere? Do I need to download the class 'dates' somewhere?

Thanks

@rajit
Copy link
Owner

rajit commented Mar 7, 2018

Sorry for the delay, I'm not familiar with that error. It'd help if you could share code that would allow me to reproduce the issue. You may also want to post this at https://github.com/uxsolutions/bootstrap-datepicker as they manage the datepicker itself. This repository is just a thin wrapper around their plugin that makes it easy to use in Meteor.

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

No branches or pull requests

2 participants