Я включаю fullcalendar.js в тему Wordress, используя действие wp_enqueue_scripts.Это код
wp_enqueue_script('moment', get_template_directory_uri().'/js/moment.min.js',array('jquery'), '1.0', true);
wp_enqueue_script('fullcalendar', get_template_directory_uri().'/js/fullcalendar.js',array('jquery','moment'), '1.0', true);
wp_enqueue_style('fullcalendarccs', trailingslashit( get_template_directory_uri() ) . 'css/fullcalendar.css');
Однако, когда я загружаю страницу, не вызывая fullcalendar ни в одном контейнере, я получаю эту ошибку.
TypeError: format is undefined[Learn More] fullcalendar.js:2534:9
dayOfMonthFormat
http://staynorwich.dievdesign.com/wp-content/themes/testintheme/js/fullcalendar.js:2534:9
locale/<
http://staynorwich.dievdesign.com/wp-content/themes/testintheme/js/fullcalendar.js:2652:32
each
http://staynorwich.dievdesign.com/wp-includes/js/jquery/jquery.js:2:2929
locale
http://staynorwich.dievdesign.com/wp-content/themes/testintheme/js/fullcalendar.js:2650:5
<anonymous>
http://staynorwich.dievdesign.com/wp-content/themes/testintheme/js/fullcalendar.js:2666:1
__webpack_require__
http://staynorwich.dievdesign.com/wp-content/themes/testintheme/js/fullcalendar.js:35:12
<anonymous>
http://staynorwich.dievdesign.com/wp-content/themes/testintheme/js/fullcalendar.js:1763:16
__webpack_require__
http://staynorwich.dievdesign.com/wp-content/themes/testintheme/js/fullcalendar.js:35:12
<anonymous>
http://staynorwich.dievdesign.com/wp-content/themes/testintheme/js/fullcalendar.js:12379:19
__webpack_require__
http://staynorwich.dievdesign.com/wp-content/themes/testintheme/js/fullcalendar.js:35:12
<anonymous>
http://staynorwich.dievdesign.com/wp-content/themes/testintheme/js/fullcalendar.js:78:18
<anonymous>
http://staynorwich.dievdesign.com/wp-content/themes/testintheme/js/fullcalendar.js:16:18
webpackUniversalModuleDefinition
http://staynorwich.dievdesign.com/wp-content/themes/testintheme/js/fullcalendar.js:14:26
<anonymous>
http://staynorwich.dievdesign.com/wp-content/themes/testintheme/js/fullcalendar.js:6:11
Опять же, я не звоню. .FullCalendar'на любом контейнере - я фактически удаляю любой код, который делал это.
Обновление: я изменяю настройки формата даты в WordPress, и если я изменяю дату с 21 декабря на 12/21, ошибка неприсутствует больше.Может быть конфликт с чем-то из Wordpress?
Спасибо