やすまんの技術ブログ

駆け出しエンジニアが日々学んだこと、わからなかったことなどをまとめておくブログ。忘備録としても使います。

インデントエラー Inconsistent indentationの解決方法

結論

5 spaces used for indentation, but the rest of the document was indented using 2 spaces.

 

とあるので、半角スペースの数を5つから2つにしてねと書いてあるので

スペースの数を修正する。

 

=link_to "https://www.yahoo.com/", class: "contents__btn contents__btn--yahoo" do
   = icon('fab', 'yahoo', class: "contents__btn--icon")
    %span<>

 

これを

 

=link_to "https://www.yahoo.com/", class: "contents__btn contents__btn--yahoo" do
  = icon('fab', 'yahoo', class: "contents__btn--icon")
   %span<>

 

に変更する。

スペースの位置や、そのスペースが全角になっていないかを確認する。

 

というかこんな細かいことでもエラー出るのかい汗