Requiring pickadate.js with Browserify
问题 I would like to use the responsive pickadate.js date picker in my Backbone.js application. I am using Browserify to manage modules and dependencies and wondering how to integrate pickadate. I started with a npm install pickadate which added the node module to my project. Then, in one of my views, I try this: var pickadate = require('pickadate'); this.$el.find('input[name=dateEntry]').pickadate(); The error is on the second line which throws this error: [Error] TypeError: 'undefined' is not a