[SOLVED] index.html error while middleman deploy 😿

Hello everyone!

After installing:

gem 'middleman-search_engine_sitemap'
gem 'middleman-sitemap-ping'

I’ve started getting errors while running middleman deploy command. Site works just fine in middleman server mode but deploy does not. I’ve removed those gems but the problem still persists. The weirdest part is that it looks like middleman is trying to generate over and over this index.html file:

40 PM

Here is the content of my Gemfile:

#===============================================================================
# Gemfile
#===============================================================================
# If you do not have OpenSSL installed, change the following line to use 'http://'
source 'https://rubygems.org'
ruby   "2.2.3"

# Middleman Gems
gem 'middleman', '~> 4.2'
gem "middleman-blog"
# gem 'middleman-search_engine_sitemap'
# gem 'middleman-sitemap-ping'

gem 'middleman-autoprefixer', '~> 2.7'
gem 'middleman-deploy', '~> 2.0.0.pre.alpha'
gem 'middleman-spreadsheet'


gem 'wdm', '~> 0.1.0', platforms: [:mswin, :mingw] # For faster file watcher updates on Windows:
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby] # Windows does not come with time zone data

# Additional
gem 'redcarpet', '~> 3.3', '>= 3.3.3'
gem "builder", "~> 3.0" # For feed.xml.builder
gem "middleman-minify-html" # minify output html
gem "rake"
gem 'json', '1.8.3'

Help!

I found what was the issue. Something with gem middleman-spreadsheet doesn’t work right from time to time - likely if there is character error in the spreadsheet itself.