execjs icon indicating copy to clipboard operation
execjs copied to clipboard

No line number and file name of compile errors

Open JohnMerlino1 opened this issue 8 years ago • 3 comments

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?

JohnMerlino1 avatar Aug 01 '16 17:08 JohnMerlino1

What execjs runtime are you using?

ignisf avatar Aug 01 '16 18:08 ignisf

I have the following: execjs (2.6.0, 2.5.2, 2.2.1, 2.0.2)

JohnMerlino1 avatar Aug 03 '16 16:08 JohnMerlino1

I meant which of those runtimes (from README):

ExecJS supports these runtimes:

ignisf avatar Aug 03 '16 16:08 ignisf