I've put the chronic and chronic_duration gems in my Gemfile, and everything works fine in volt console. However, if I try anything on the client side, I get a name error. I tried requiring them in a client-side initializer, but that didn't help.
Any tips?
Just to add to Elia's answer, in Volt you can put
use_geminconfig/dependencies.rb(in the docs here)This does work to load Chronic but it looks like Chronic won't run in Opal because it uses mutable strings - I get the following error:
Uncaught NotImplementedError: #<< not supported. Mutable String methods are not supported in Opal.