New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rails 3.1 raise error in production env #511
Comments
@timoschilling , can you please provide a gist with a complete backtrace? Also explain your scenario a bit more please. |
We are also getting this on CI. It is probably an error related to the uglifier gem and/or assets pipeline. @timoschilling, please provide the full backtrace and the result of "bundle show". |
Setup:
Log: ActionView::Template::Error (TypeError: a.reduce is not a function): Rendered vendor/bundle/ruby/1.8/gems/actionpack-3.1.0.beta1/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms) The Error is not in the application template, the Error is with a empty template the same. If i set the Envirement to development, every thinks works! |
@timoschilling can you try changing uglifier in the Gemfile to gem 'uglifier', :git => 'https://github.com/lautis/uglifier.git' ? |
@timoschilling any news here? |
@spastorino i can test this only on the weekend |
now i use currently i become the error |
Could you please output the result of "ExecJS.runtime" in development and production? You need latest ExecJS and you can get that in console. |
Uglifier had issues when used with If you run into similar issues with other runtimes (JScript?), please let me know so that I can fix them. |
Can't replicate with latest uglifier. Please reopen if you can replicate. |
the problem is still there in ree-1.8.7, i solve the problem for me with switching to ruby 1.9.2 |
Do you still get the same exception? What ExecJS runtime are you using with ree-1.8.7? |
the exception was the same or a little bit different. Sorry but i remove the ree environment and switch to 1.9.2 |
Explicitly mentions the #and operator
Rails 3.1 raise the following error in production env:
ActionView::Template::Error (TypeError: a.reduce is not a function)
The text was updated successfully, but these errors were encountered: