Middleman sass compiling error

While you were made web template with haml and sass, if you use middleman and bootstrap for your web template and your project give you like,

1
2
Error compiling CSS asset
NoMethodError: undefined method `font_path` for nil:NilClass

error.

You can fix like with edit your Gemfile

1
2
3
gem 'bootstrap-sass', '~> 3.1.1'
gem 'middleman-sprockets', '3.2.2'
gem 'middleman-bootstrap-navbar','~>2.0'

Then you can write in terminal bundle install Than if errors didn’t fixed, you should write on terminal

1
bundle update middleman-sprockets

If you want to researches with details, you should look this page

That’s all.

I hope helped to you.

Comments