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,007
  • 1
  • 11
  • 26

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
  • 325
  • 3
  • 14