Closed KaptajnKold closed 10 years ago
it's very likely similar to #18 ... check your class-path for possible .jar files that contain an older version of rhino packaged.
I ran into the same issue. Both uglifier and jslint_on_rails were depending on execjs and I think somehow Rhino got pulled in twice. Once I removed jslint_on_rails it worked as expected.
My recommendation is to look at your Gemfile.lock and see who's depending on execjs and play around with removing different sets of those gems.
@lolindrath excellent, thanks!
I notice this intermittently - unpredictably. One of my gems requires execjs > 0.3.0
and another doesn't specify. I am manually requiring 2.0.2
now. Has anyone determined which version is most likely to work without displaying the error shown?
As soon as I try to
require "rhino"
, I get this error:This happens for in both version 1.73.5 and version 2.0.3 of therubyrhino. The only way to get it to work is to comment out the offending line. Any idea why this might be happening to me?