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

moment is not a function #7

Open
jimmiebtlr opened this issue Jun 18, 2015 · 4 comments
Open

moment is not a function #7

jimmiebtlr opened this issue Jun 18, 2015 · 4 comments

Comments

@jimmiebtlr
Copy link

When I try to use it like so

Template._serviceTicketsIndexDateRange.rendered = function(){
  this.$('input[name="daterange"]').daterangepicker();
};

I get

TypeError: moment is not a function
    at DateRangePicker.setOptions (http://localhost:3000/packages/loftsteinn_bootstrap3-daterangepicker.js?73679da016771352c9af48d8ada5317d47620eb9:146:30)
    at new DateRangePicker (http://localhost:3000/packages/loftsteinn_bootstrap3-daterangepicker.js?73679da016771352c9af48d8ada5317d47620eb9:104:14)

Which is the first line of setOptions in the dateRangePicker prototype.

Versions

I use moment throughout the application, so I'm a bit clueless currently as to the cause.

@bgrayburn
Copy link

+1

@bgrayburn
Copy link

any ideas on this? it's currently a blocking issue

@cranesandcaff
Copy link

My solution was to use the alternative package:
https://atmospherejs.com/gilbertwat/bootstrap3-daterangepicker

@epeng5
Copy link

epeng5 commented Aug 4, 2015

Had same issue. @cranesandcaff's solution worked for me. Thanks!

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

4 participants