Import WOW.js not working correctly with sage 9

Here’s how I got it working:

  1. npm install --save wow.js (note the . and --save flag)
  2. In Common.js:
import Wow from 'wow.js';

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
  },
};
10 Likes