Hello I'm trying to include jscrollpane.js on my theme and it's working but one of the dependencies mousewheel.js
https://github.com/brandonaaron/jquery-mousewheel
Is not, I've got an error in console
Uncaught Error: Mismatched anonymous define() module: function (a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelD...<omitted>...ch
And when I delete the part with define
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}
It's not working too.
The thing is when I'm using it on a website the traditional way I don't have any problems but it seems that there's a conflict with the way NodeBB loads js files and uses require via plugin.json
Do you have any idea of how I could fix this ?