Closed
Description
Help us help you! Please choose one:
- [ X ] My app crashes with
react-rails
, so I've included the stack trace and the exact steps which make it crash. - My app doesn't crash, but I'm getting unexpected behavior. So, I've described the unexpected behavior and suggested a new behavior.
- I'm trying to use
react-rails
with another library, but I'm having trouble. I've described my JavaScript management setup (eg, Sprockets, Webpack...), how I'm trying to use this other library, and why it's not working. - I have another issue to discuss.
I'm trying to push my app towards heroku's cloud but I'm unable to compile the assets on production. However I'm able to run development without the problem stated below.
I'm using a multi buildpack setup that:
- Install node dependencies
- Install bower dependencies
- Install ruby dependencies and asset compilation as last step
My guess is I'm missing a dependency in production that I already have in development.
Do I need to install babel as a dependency on heroku?
Stacktrace:
remote: ExecJS::ProgramError: Unexpected token punc «}», expected punc «:» (line: 13994, col: 4, pos: 974545)
remote: Error
remote: at new JS_Parse_Error (/tmp/execjs20160605-1442-1sywewpjs:3572:11870)
remote: at js_error (/tmp/execjs20160605-1442-1sywewpjs:3572:12089)
remote: at croak (/tmp/execjs20160605-1442-1sywewpjs:3572:20898)
remote: at token_error (/tmp/execjs20160605-1442-1sywewpjs:3572:21035)
remote: at expect_token (/tmp/execjs20160605-1442-1sywewpjs:3572:21258)
remote: at expect (/tmp/execjs20160605-1442-1sywewpjs:3572:21396)
remote: at /tmp/execjs20160605-1442-1sywewpjs:3572:30647
remote: at /tmp/execjs20160605-1442-1sywewpjs:3572:21788
remote: at expr_atom (/tmp/execjs20160605-1442-1sywewpjs:3572:29403)
remote: at maybe_unary (/tmp/execjs20160605-1442-1sywewpjs:3573:143)
remote: at expr_ops (/tmp/execjs20160605-1442-1sywewpjs:3573:901)
remote: at maybe_conditional (/tmp/execjs20160605-1442-1sywewpjs:3573:993)
remote: at maybe_assign (/tmp/execjs20160605-1442-1sywewpjs:3573:1436)
remote: at expression (/tmp/execjs20160605-1442-1sywewpjs:3573:1749)
remote: at expr_list (/tmp/execjs20160605-1442-1sywewpjs:3572:29964)
remote: new JS_Parse_Error ((execjs):3572:11870)
remote: js_error ((execjs):3572:12089)
remote: croak ((execjs):3572:20898)
remote: token_error ((execjs):3572:21035)
remote: expect_token ((execjs):3572:21258)
remote: expect ((execjs):3572:21396)
remote: (execjs):3572:30647
remote: (execjs):3572:21788
remote: expr_atom ((execjs):3572:29403)
Metadata
Metadata
Assignees
Labels
No labels