Rails 4.1: ExecJS::ProgramError in Welcome#index TypeError: Object doesn’t support this property or method

When I creating a new rails app in windows platform with rails 4.1.8.

After bundle install and generating welcome controller.

I have got this error:
ExecJS::ProgramError in Welcome#index
TypeError: Object doesn't support this property or method

To resolve this error we need to fix this issue as:

Coffee script 1.9.0 doesn’t work with Windows. On my Windows 7 machine, using version 1.8.0 solved this problem.

Add to Gemfile

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

bundle update coffee-script-source

Advertisements

2 thoughts on “Rails 4.1: ExecJS::ProgramError in Welcome#index TypeError: Object doesn’t support this property or method

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s