zpaulovics/datetimepicker-rails

ReferenceError: Can't find variable: module

Closed this issue · 2 comments

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!

Hey I had exactly the same problem and as is written here derekprior/momentjs-rails#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 :)

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