ember.js - Debugging Rails 3.2 failing to precompile ember-rails 0.19 -


looking way determine in code or in ember-rails/ember-rails-source error coming from. using rails 3.2 , latest ember-rails 0.19. when precompile assets failure:

unexpected token: operator (!) (line: 16, col: 178179, pos: 178546)  error     @ new js_parse_error (<eval>:3096:22)     @ js_error (<eval>:3104:15)     @ croak (<eval>:3557:17)     @ token_error (<eval>:3564:17)     @ unexpected (<eval>:3570:17)     @ object.semicolon [as 1] (<eval>:3590:51)     @ prog1 (<eval>:4133:29)     @ simple_statement (<eval>:3726:35)     @ <eval>:3634:35     @ block_ (<eval>:3822:32)   (in /users/sjustin/development/my-app/app/assets/javascripts/application.js.coffee) 

i've been able destructively assets precompile removing ember sprockets reference, #= require ember in application.js.coffee:

#= require jquery #= require jquery_ujs #= require ember #= require ember-data #= require_self #= require my-app  window.myapp = ember.application.create() 

but breaks app. if run app locally without precompiling don't errors rails or javascript console.

which javascript runtime (e.g. therubyracer, execjs, nodejs) using? have tried switch it? i'd recommend using node (especially if you're running multiple apps on single server), because don't have add gem if node installed.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -