Apologies if this seems like I'm missing something very obvious. (I'm using an app built with npm and backbone) I am trying to load my datetimepicker module using common.js
datetimepicker = require('eonasdan-bootstrap-datetimepicker')
When I go to add a datetimepicker in my app, I get:
Uncaught TypeError: $(...).datetimepicker is not a function
When I look in my debugger I can see the module is not getting loaded. It has been installed in my node modules folder. I'm just wondering can anyone spot anything obvious I could be missing. I have imported moment and jquery as they are listed dependencies. They are imported/loaded before the datetimepicker. Any help greatly appreciated.