As @dinocarl kindly pointed out, the map
and list
features of SASS are in version 3+. I had to upgrade sass-rails
gem to version 5+ because that version of the gem packages SASS 3+. Worked like a charm after I upgraded the gem version (also were few additional dependencies I had to update).