Skip to content

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

@ahblay

Description

@ahblay

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions