air-datepicker icon indicating copy to clipboard operation
air-datepicker copied to clipboard

$.fn.datepicker.Body is not a constructor

Open xzegga opened this issue 5 years ago • 0 comments

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($) {    
					
});

xzegga avatar Aug 29 '19 22:08 xzegga