bookworm-light-hugo icon indicating copy to clipboard operation
bookworm-light-hugo copied to clipboard

Undefined variable: "$h1"

Open abdurahman-harouat opened this issue 2 years ago • 5 comments

hello my friend , .. i'm getting this error :

Error: Error building site: TOCSS: failed to transform "style.main.scss" (text/x-scss): "/home/$USER/Downloads/quickstart/themes/bookworm-light/assets/scss/_typography.scss:2:15": Undefined variable: "$h1".

when running

hugo server -D

abdurahman-harouat avatar Jun 18 '22 10:06 abdurahman-harouat

Hello @kherwata

I think you are not using the Hugo_extended version on your machine. that's why the scss cannot be generated and throws an error. try to install the hugo_extended version.

mehedi-sharif avatar Jun 19 '22 03:06 mehedi-sharif

i'm using Hugo_extended version and still getting the same error

abdurahman-harouat avatar Jun 19 '22 06:06 abdurahman-harouat

did you follow those steps:

# clone the repository
git clone [email protected]:gethugothemes/bookworm-light.git

# cd in the project directory
$ cd bookworm-light/exampleSite/

# Start local dev server
$ hugo server --themesDir ../..

mehedi-sharif avatar Jun 19 '22 06:06 mehedi-sharif

I also get similar error message even though I use hugo extended.

Initially I use version 0.99.1 get the similar error.

Upgrading to 0.101.0 still giving same error

Downgrading to 0.97.0 no error

Then I tried to re-install version 0.101.0 no error

Initially I was suspecting problem in newer hugo version but apparently not. Not sure yet what was causing the error.

sumodirjo avatar Jul 07 '22 03:07 sumodirjo

I had the same issue but it got once I copied the config.toml file from the example site to the current config.toml

blanc42 avatar Jul 25 '22 20:07 blanc42

I removed the following lines from the config.toml to resolve the error:

############################# Modules ##############################
[module.hugoVersion]
extended = true
min = "0.87.0"

Herndl avatar Dec 21 '22 20:12 Herndl

Use the latest version of Hugo to fix this error. thanks

tfsomrat avatar Sep 12 '23 02:09 tfsomrat