0

for some reason I am getting a really weird error when pushing to heroku.

    rake aborted!
remote:        ExecJS::ProgramError: Unexpected token: operator (<) (line: 14451, col: 2, pos: 408763)
remote:        Error
remote:        at new JS_Parse_Error (/tmp/execjs...)
remote:        at js_error (/tmp/execjs...)
remote:        at croak (/tmp/execjs...)
remote:        at token_error (/tmp/execjs...)
remote:        at unexpected (/tmp/execjs...)
remote:        at expr_atom (/tmp/execjs...)
remote:        at maybe_unary (/tmp/execjs...)
remote:        at expr_ops (/tmp/execjs...)

and does anyone know what the line: , col: , pos: represent?

are there any files that you need to see?

Dylan L.
  • 1,243
  • 2
  • 16
  • 35
  • *does anyone know what the line: , col: , pos: represent?* The location of the error in the source code. – 7stud Jan 25 '15 at 03:44
  • yes, but how do I interpret it? – Dylan L. Jan 25 '15 at 03:46
  • "Please go to line 14451 and look around for '<'. If not found there, look at the previous lines." – 7stud Jan 25 '15 at 03:47
  • haha yeah, but where is that located? I have no line 14451 in my code... how do i find that log? – Dylan L. Jan 25 '15 at 03:51
  • Unless `ExecJS::ProgramError:` is something in your code, then the error is in the *heroku* source code. Do you have '<' anywhere in your code? Check all those lines for errors. – 7stud Jan 25 '15 at 03:55
  • I found the answer here: http://stackoverflow.com/questions/8854057/bundle-exec-rake-assetsprecompile-fails-with-unexpected-token – Dylan L. Jan 25 '15 at 04:13

1 Answers1

0

I had the same issue with webcomponents-lite.min.js. It looks as though heroku requires a new line at the end of the file.

As the entire file was on one line. I added a new empty line, i.e. went to the end of the file and pressed return.

Commit and pushed to heroku - problem solved.

Johnny
  • 355
  • 4
  • 15