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

Can't use v2.1.22 with Bower and Browserify #133

Closed StanislauTarazevich closed 8 years ago

StanislauTarazevich commented 8 years ago

When I try to build a bundle using Browserify and rome as bower package I get the following message:

Error: Cannot find module './throttle' from 'path/to/bower_components/rome/dist'

v2.1.21 works well. As I understand it happened because _dereq_ was replaced with require.

NPM version works well though because main file is src/rome.moment.js and there are all necessary files in src folder. But in bower version main file is dist/rome.js and there are no separate modules in dist folder so they can't be required.

bevacqua commented 8 years ago

Don't. Use npm and browserify