opal / opal-sprockets

Sprockets support for Opal (used to be embedded into Opal from v0.6 up to v0.10)
29 stars 17 forks source link

uninitialized constant Opal::SprocketsParser #2

Closed mensfeld closed 11 years ago

mensfeld commented 11 years ago

Hey, I have rails 4 project with opal, but when I try to precompile assets, I get following error:

uninitialized constant Opal::SprocketsParser
  (in /project/.bundle/ruby/2.0.0/gems/opal-0.4.4/stdlib/opal-source-maps.js.erb)
/project/.bundle/ruby/2.0.0/gems/opal-0.4.4/stdlib/opal-source-maps.js.erb:2:in `block in singleton class'
/project/.bundle/ruby/2.0.0/gems/opal-0.4.4/stdlib/opal-source-maps.js.erb:-5:in `instance_eval'
/project/.bundle/ruby/2.0.0/gems/opal-0.4.4/stdlib/opal-source-maps.js.erb:-5:in `singleton class'
/project/.bundle/ruby/2.0.0/gems/opal-0.4.4/stdlib/opal-source-maps.js.erb:-7:in `__tilt_13426200'
/project/.bundle/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `call'
/project/.bundle/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `evaluate'
/project/.bundle/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'

Do you know what might be the cause?

elia commented 11 years ago

Try disabling source maps in application.rb with config.opal.source_map_enabled = false while I try to fix this on opal/opal.

mensfeld commented 11 years ago

@elia: Assets are compiling - thanks! :)

elia commented 11 years ago

should be fixed by 225df093508eaf7f958cb0feb447ac7cb0b470d4