Import WOW.js not working correctly with sage 9

Finally, with the curretn sage version (9) :

yarn add wowjs

Then in common.js

import {WOW} from 'wowjs';

export default {
  init() {
    // JavaScript to be fired on all pages
    const wow = new WOW();

    wow.init();
  },
  finalize() {
    // JavaScript to be fired on all pages, after page specific JS is fired
  },
};
1 Like