Search code examples
javascriptruby-on-railsruby-on-rails-4ujs

ExecJS::RuntimeError in Rails


I just updated to rails 4.2. I created a new controller called home#index with some minimal html. When I started my $ rails server and navigated to http://localhost:3000/home, I got ExecJS RuntimeError.

P.S.: I have installed node.js, but it still gives me this error.


Solution

  • I solved it by myself. I was trying to integrate react-rails and I was using the jsx syntax and for some reason the javascript runtime(nodejs) was not able to run this.

    -- Cheers