execjs
execjs copied to clipboard
No line number and file name of compile errors
When I try to precompile assets for production:
bundle exec rake assets:precompile RAILS_ENV=production I get the following error:
ExecJS::ProgramError: RangeError: Maximum call stack size exceeded
(in /myapp/app/assets/javascripts/application.js)
This error is useless. It will be like finding a needle in a haystack. My application.js is simply one line which requires a bunch of other javascript:
//= require_tree .
I need to know which file the infinite recursion occurs at and specifically what line number. Otherwise I can spend 2 months searching for this error. Surely, I am not the only person with this need. What kind I do in this situation?
What execjs runtime are you using?
I have the following: execjs (2.6.0, 2.5.2, 2.2.1, 2.0.2)
I meant which of those runtimes (from README):
ExecJS supports these runtimes:
- therubyracer - Google V8 embedded within Ruby
- therubyrhino - Mozilla Rhino embedded within JRuby
- Duktape.rb - Duktape JavaScript interpreter
- Node.js
- Apple JavaScriptCore - Included with Mac OS X
- Microsoft Windows Script Host (JScript)
- Google V8
- mini_racer - Google V8 embedded within Ruby