Meteor-Community-Packages / meteor-autoform-bs-datepicker

Custom "bootstrap-datepicker" input type for AutoForm
MIT License
25 stars 32 forks source link

Exception in template helper: Error: If you specify a timezoneId, make sure that you've added a moment-timezone package to your app #47

Closed Netherdrake closed 7 years ago

Netherdrake commented 7 years ago

I get the following error:

Exception in template helper: Error: If you specify a timezoneId, make sure that you've added a moment-timezone package to your app

Despite having moment-timezone installed.

This error appears intermittently (causing datepicker to crash), I'd say about 60% of the time.

aldeed commented 7 years ago

The only thing that can be done here is adjusting the order your package dependencies are listed or delay your code a bit. It sounds like sometimes the moment.tz function just isn't done initializing by the time your form code runs.