Hugo Error - Can’t evaluate field ContentDir in type *langs.Language

Intro

Recently, I found myself on an unexpected journey - the reimaging of my work notebook. This was not a decision I made voluntarily, but rather a task assigned by my company due to a domain change.
I was part of a team that offered up their notebooks for the reimage process, and it was quite an adventure.

The Fresh Start

The process began with formatting my computer, which gave me that sense of rejuvenation as if I had a brand-new PC.
However, with this digital clean slate came the arduous task of reinstalling and reconfiguring everything, from basic software to my web development environment.

The Temptation to Change

As I was setting up my development environment, I couldn’t resist the temptation to give my website a fresh look.
It had been sporting the “Hermit” theme for a while, and I had been eyeing the “LoveIt” theme for some time now.

So, I decided to take the plunge and make the change.

The Mysterious Error

With the “LoveIt” theme ready to go, I fired up my local server to see the results.
To my dismay, an error message greeted me:

Error
“Can’t evaluate field ContentDir in type langs.Language.”

It was a cryptic error that sent me into a mild state of panic.

Self-Discovery and Solution

After some frantic searching and head-scratching, I turned to the most reliable source of all - the manual of the LoveIt theme itself.
As I revisited the installation instructions, I stumbled upon the solution. It turns out that both “Hermit” and “LoveIt” themes used Dart Sass, and I had forgotten to set it up after the fresh install.

Here below the instructions to install Dart Sass:

OS Package manager Site Installation
MacOS Homebrew brew.sh brew install sass/sass/sass
Windows Homebrew brew.sh brew install sass/sass/sass
Windows Chocolatey chocolatey.org choco install sass
Linux Homebrew brew.sh brew install sass/sass/sass
MacOS Snap snapcraft.io sudo snap install dart-sass