Colby CheeZe
Colby CheeZe

Reputation: 93

Middleman - Unknown Extension: livereload

Trying to just get started building a site with Middleman, and I'm following the tutorial to a t, but when I start the server I always get "Unknown Extension: livereload"

I already have

group :development do
  gem 'middleman-livereload'
end

and

configure : development do
  activate :livereload
end

Any ideas?

Upvotes: 6

Views: 1151

Answers (2)

DaveWoodall.com
DaveWoodall.com

Reputation: 797

I started with the blog flag out of the box.

middleman init MY_BLOG_PROJECT --template=blog

So, for me, the gem was never part of the original GEMFILE. My solution was to add the gem.

# Gemfile
gem 'middleman-livereload'

Ruby Static Sites FTW!

Upvotes: 0

Steve Benner
Steve Benner

Reputation: 1717

I had the exact same problem. For some reason LiveReload isn't recognized when you include it in a group in your Gemfile. My fix:

gem 'middleman-livereload' # NOTE: breaks if placed inside a group!
group :middleman do
  gem 'middleman'
end

I'm using middleman 3.3.12 and middleman-livereload 3.4.2

Upvotes: 5

Related Questions