I am using the latest meteor and trying to use sticky-kit(https://www.npmjs.com/package/sticky-kit) for one of my js files.
After I install this npm package via meteor npm install --save sticky-kit
In my header.html file, I have an element with class js-stick
In my header.js file, I got the following code.
import sticky from ‘sticky-kit’;
import { Template } from ‘meteor/templating’
import ‘./header.html’;
Template.Header.onRendered(function () {
this.$(’.js-stick’).stick_in_parent();
});
however, I got Cannot find module ‘sticky-kit’ exception. Can someone help me to figure out what’s wrong with it, as I am quite new to javascript and meteor?