I am using jquery.dotdotdot to automatically abbreviate long texts with an ellipsis. The code using dotdotdot is located in a local Meteor package (/packages folder), the package itself is installed via package.json. I also check its existence via tmeasday:check-npm-versions.
When the client starts up, I get the following error message:
install.js:85 Uncaught Error: Cannot find module 'jQuery'
at require (install.js:85)
at jquery.dotdotdot.min.umd.js:5
at meteorInstall.node_modules.jquery-dotdotdot.src.jquery.dotdotdot.min.umd.js (jquery.dotdotdot.min.umd.js:9)
at fileEvaluate (install.js:153)
at require (install.js:82)
at meteorInstall.node_modules.meteor.guzz:notifications-ui.templates.notifications.js (notifications.js:8)
at fileEvaluate (install.js:153)
at require (install.js:82)
at guzz_notifications-ui.js?hash=e0e0a38…:765
at guzz_notifications-ui.js?hash=e0e0a38…:774
Obviously, jquery.dotdotdot is not able to register itself in jQuery, since it can’t find the jQuery global. This works for other packages like jquery-range-slider, but not for this one. What might cause this behaviour?