Skip to content

ExecJS::ProgramError: Unexpected token: punc (:) due to ember-data.js.map #428

Description

@ur5us

After upgrading to version 0.16.1 the build consistently fails, that is, I'm not able to run bundle exec rake assets:precompile successfully. Here's the stack trace which suggests that there is an issue with ember-data.js.map:

rake aborted!
ExecJS::ProgramError: Unexpected token: punc (:) (line: 1, col: 10, pos: 10)

Error
    at new JS_Parse_Error (<eval>:2359:10623)
    at js_error (<eval>:2359:10842)
    at croak (<eval>:2359:19086)
    at token_error (<eval>:2359:19223)
    at unexpected (<eval>:2359:19311)
    at semicolon (<eval>:2359:19784)
    at simple_statement (<eval>:2359:22580)
    at <eval>:2359:20274
    at <eval>:2359:19957
    at block_ (<eval>:2359:24599)
  (in /Users/ur5us/dev/haka_tours/tmp/ember-rails/ember-data.js.map)/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:34:in `rescue in block in eval'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:28:in `block in eval'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:78:in `block in lock'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:76:in `call'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:76:in `Locker'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:76:in `lock'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:27:in `eval'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:19:in `exec'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/uglifier-2.6.1/lib/uglifier.rb:200:in `run_uglifyjs'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/uglifier-2.6.1/lib/uglifier.rb:178:in `compile'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/actionpack-3.2.21/lib/sprockets/compressors.rb:74:in `compress'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/actionpack-3.2.21/lib/sprockets/compressors.rb:74:in `compress'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/processing.rb:265:in `block in js_compressor='
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/processor.rb:29:in `call'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/processor.rb:29:in `evaluate'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/context.rb:193:in `block in evaluate'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/context.rb:190:in `each'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/context.rb:190:in `evaluate'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/sprockets_overrides/bundled_asset.rb:24:in `initialize'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/sprockets_overrides/base.rb:22:in `new'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/sprockets_overrides/base.rb:22:in `build_asset'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/index.rb:93:in `block in build_asset'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/caching.rb:19:in `cache_asset'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/index.rb:92:in `build_asset'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:169:in `find_asset'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/sprockets_overrides/index.rb:14:in `find_asset'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/sprockets_overrides/static_compiler.rb:41:in `block in compile'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:219:in `block in each_logical_path'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:206:in `block (2 levels) in each_file'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:196:in `each'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:196:in `each_entry'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:204:in `block in each_file'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:203:in `each'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:203:in `each_file'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:217:in `each_logical_path'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/sprockets_overrides/static_compiler.rb:29:in `compile'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/tasks/assets.rake:108:in `internal_precompile'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/tasks/assets.rake:115:in `block (3 levels) in <top (required)>'
V8::Error: Unexpected token: punc (:)
at js_error (<eval>:2359:10842)
at croak (<eval>:2359:19086)
at token_error (<eval>:2359:19223)
at unexpected (<eval>:2359:19311)
at semicolon (<eval>:2359:19784)
at simple_statement (<eval>:2359:22580)
at <eval>:2359:20274
at <eval>:2359:19957
at block_ (<eval>:2359:24599)
at <eval>:2359:20663
at <eval>:2359:19957
at <eval>:2359:31968
at parse (<eval>:2360:152)
at <eval>:19:24
at <eval>:62:3
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:29:in `block in eval'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:78:in `block in lock'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:76:in `call'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:76:in `Locker'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:76:in `lock'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:27:in `eval'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/execjs-2.2.2/lib/execjs/ruby_racer_runtime.rb:19:in `exec'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/uglifier-2.6.1/lib/uglifier.rb:200:in `run_uglifyjs'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/uglifier-2.6.1/lib/uglifier.rb:178:in `compile'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/actionpack-3.2.21/lib/sprockets/compressors.rb:74:in `compress'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/actionpack-3.2.21/lib/sprockets/compressors.rb:74:in `compress'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/processing.rb:265:in `block in js_compressor='
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/processor.rb:29:in `call'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/processor.rb:29:in `evaluate'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/context.rb:193:in `block in evaluate'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/context.rb:190:in `each'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/context.rb:190:in `evaluate'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/sprockets_overrides/bundled_asset.rb:24:in `initialize'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/sprockets_overrides/base.rb:22:in `new'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/sprockets_overrides/base.rb:22:in `build_asset'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/index.rb:93:in `block in build_asset'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/caching.rb:19:in `cache_asset'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/index.rb:92:in `build_asset'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:169:in `find_asset'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/sprockets_overrides/index.rb:14:in `find_asset'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/sprockets_overrides/static_compiler.rb:41:in `block in compile'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:219:in `block in each_logical_path'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:206:in `block (2 levels) in each_file'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:196:in `each'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:196:in `each_entry'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:204:in `block in each_file'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:203:in `each'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:203:in `each_file'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/sprockets-2.2.3/lib/sprockets/base.rb:217:in `each_logical_path'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/sprockets_overrides/static_compiler.rb:29:in `compile'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/tasks/assets.rake:108:in `internal_precompile'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/tasks/assets.rake:115:in `block (3 levels) in <top (required)>'
Tasks: TOP => assets:precompile:all
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/Users/ur5us/.rvm/rubies/ruby-2.1.5/bin/ru...]
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/tasks/assets.rake:24:in `ruby_rake_task'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/tasks/assets.rake:33:in `invoke_or_reboot_rake_task'
/Users/ur5us/.rvm/gems/ruby-2.1.5/gems/turbo-sprockets-rails3-0.3.14/lib/turbo-sprockets/tasks/assets.rake:50:in `block (2 levels) in <top (required)>'
/Users/ur5us/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `eval'
/Users/ur5us/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

Even more annoyingly I can't just downgrade the gem via specifying version 0.16.0 in the Gemfile, at least not until I manually execute rm -rf tmp/ember-rails/.

Potentially related: #343 #357

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions