gethugothemes / bookworm-light-hugo

Bookworm is a clean and modern Hugo blog theme focused on high speed and support multiple authors.
https://gethugothemes.com/products/bookworm/?utm_source=bookworm_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
100 stars 76 forks source link

Undefined variable: "$h1" #25

Closed abdurahman-harouat closed 1 year ago

abdurahman-harouat commented 2 years ago

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
mehedi-sharif commented 2 years ago

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.

abdurahman-harouat commented 2 years ago

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

mehedi-sharif commented 2 years ago

did you follow those steps:

# clone the repository
git clone git@github.com:gethugothemes/bookworm-light.git

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

# Start local dev server
$ hugo server --themesDir ../..
sumodirjo commented 2 years ago

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.

blanc42 commented 2 years ago

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

Herndl commented 1 year ago

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

############################# Modules ##############################
[module.hugoVersion]
extended = true
min = "0.87.0"
tfsomrat commented 1 year ago

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