I wanted to know how to import jQuery libraries after installing from npm. I did the following, but I encountered the following error.
import countdown from 'jquery.countdown';
$.countdown = countdown;
$("#hours1").countdown("2020/05/01 16:00:00", function (event) {
$(this).text(event.strftime('%H'));
});
and
import countdown from 'jquery.countdown';
window.$.countdown = countdown;
$("#hours1").countdown("2020/05/01 16:00:00", function (event) {
$(this).text(event.strftime('%H'));
});
Error:
Uncaught TypeError: $(...).countdown is not a function