0

Here is my development.rb file

config.assets.debug = false
config.assets.compile = true
config.assets.enabled = true
config.assets.digest = true
config.assets.raise_runtime_errors = true

and when I run the command bundle exec rake assets:precompile --trace, I get the following error.

Invoke assets:precompile (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Execute assets:precompile
rake aborted!
ExecJS::ProgramError: TypeError: Object doesn't support this property or method
c:/Ruby193/lib/ruby/gems/1.9.1/gems/execjs-
Ojash
  • 1,234
  • 8
  • 20
Vignesh
  • 259
  • 4
  • 15

2 Answers2

1

add this to your Gemfile

gem 'coffee-script-source', '1.8.0'

and do this

bundle update coffee-script-source

Reference: Rails-4, ExecJS::ProgramError in Pages#welcome

Community
  • 1
  • 1
Athar
  • 3,258
  • 1
  • 11
  • 16
1

if you use Windows, try to install NodeJS and restart the computer. Should be run.