These are chat archives for opal/opal
require_treewith Rails wouldn't load files that were added after the first compilation — for example, if you had
require_tree 'foo', it would load the existing
foo/bar, but if you added the file
foo/bazafter loading the app, it wouldn't load that. Is that similar to what you're seeing?
# Gemfile gem 'opal' gem 'opal-browser' # Rakefile require 'opal' require 'opal-browser' desc "Build our app to build.js" task :build do Opal.append_path "app" File.binwrite "build.js", Opal::Builder.build("application").to_s end # app/application.rb require 'opal' require 'browser' alert "Wow, running opal!"
$ rake build rake aborted! LoadError: cannot load such file -- opal-browser /home/rick/code/static-opal/Rakefile:3:in `<top (required)>' /home/rick/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval' /home/rick/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>' (See full trace by running task with --trace)
or you could do
require 'bundler/setup' Bundler.require :default
and remove the two require statements
uninitialized constant Opal::Tilt? I'm using opal-browser 0.2.0.beta1
0.6.3. Was trying to work around this one: opal/opal-browser#10