I installed this npm package: https://www.npmjs.com/package/datatables.net by doing
npm install datatables.net meteor add jquery
And in my JS file (with the template helpers):
var $ = require( 'jquery' ); require( 'datatables.net' )( window, $ );
However, I’m getting this error:
ReferenceError: window is not defined
Any ideas on how to resolve this? Thanks.