If this is being caused by the daterangePicker, you may try assigning the moment object to the window... window.moment = moment;