WOW is not a constructor
when i try to require WOW
one of these statements
global.WOW = require('wowjs');
var WOW = require('wowjs');
window.WOW = require('wowjs');
I am getting this error
jQuery.Deferred exception: WOW is not a constructor TypeError: WOW is not a constructor
+3
Barakat Turki
source
to share
2 answers
try this
const WOW = require('wowjs');
window.wow = new WOW.WOW({
live: false
});
window.wow.init();
+2
Ashraf farhan
source
to share
the module is exporting an object, you need to use the WOW constructor on that object. For example.require('wowjs').WOW
0
Gabo esquivel
source
to share