air-datepicker
air-datepicker copied to clipboard
$.fn.datepicker.Body is not a constructor
I am loading air-datepicker with require.js, all load fine but I am getting the error $.fn.datepicker.Body is not a constructor
can you point me in the right direction on how to load without problems.
requirejs.config({
"baseUrl": "js",
"paths": {
"jquery": "//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min",
"datePicker": "//cdnjs.cloudflare.com/ajax/libs/air-datepicker/2.2.3/js/datepicker",
"datePickerLg": "//cdnjs.cloudflare.com/ajax/libs/air-datepicker/2.2.3/js/i18n/datepicker.es.min",
},
shim: {
'lazyLoad': ['jquery'],
'datePicker': ['jquery'],
'datePickerLg': ['datePicker']
}
});
define(["jquery", "datePicker", "datePickerLg"], function($) {
});