bevacqua / rome

:calendar: Customizable date (and time) picker. Opt-in UI, no jQuery!
https://bevacqua.github.io/rome
MIT License
2.91k stars 223 forks source link

Error: momentum.moment is not a function, when using with npm #137

Open patbegg opened 8 years ago

patbegg commented 8 years ago

Hi, I get the following error when using Rome v2.1.22 (node_modules/rome/src/rome.js) with npm in the browser (using grunt + browserify).

Uncaught TypeError: momentum.moment is not a function @ defaults.js:61

I can't work out exactly how 'momentum.moment' functions. Can anyone replicate this?

benadamstyles commented 8 years ago

How are you requireing rome?

If you want to use your own moment.js, you can do it like this:

var rome = require('rome/src/rome')
rome.use(moment)