zpaulovics / datetimepicker-rails

A date and time picker for Twitter Bootstrap in Rails using Simple Form
MIT License
174 stars 80 forks source link

ReferenceError: Can't find variable: module #74

Closed dongli closed 8 years ago

dongli commented 8 years ago

I followed the instructions on the README, and encountered the error:

screen shot 2016-01-19 at 2 50 23

wechat_1453188085

It comes from momentjs, but when I remove the require line for bootstrap-datetimepicker, the error is gone. Thanks in advance!

redrick commented 8 years ago

Hey I had exactly the same problem and as is written here https://github.com/derekprior/momentjs-rails/pull/43

that 2.11.1 momentjs solves it, well at least for me it did, I have it as runtime dependency inside gem, so I bulid gem here (https://rubygems.org/gems/momentjs-rails-updated)

they hopefully merge it or just refer to master of @egeek repo: https://github.com/egeek/momentjs-rails

hopefully helped a bit :)

dongli commented 8 years ago

Thanks for replying! I have used bootstrap3-datetimepicker-rails instead. Maybe I will give it a try.