hugo-theme-noteworthy icon indicating copy to clipboard operation
hugo-theme-noteworthy copied to clipboard

does not work with (hu)go modules, SCSS compilation error

Open flypenguin opened this issue 3 years ago • 0 comments

i am using themes with the new hugo module syntax, which - usually - works flawlessly. not so much here, but i think (!) the error is rather simple. i have no clue of go modules unfortunately, this is what i have found out so far.

i'm using hugo v0.87.0+extended darwin/arm64 BuildDate=unknown is. when i try to build the site i get this error:

Start building sites …
hugo v0.87.0+extended darwin/arm64 BuildDate=unknown
Error: Error building site: TOCSS: failed to transform "css/main.scss" (text/x-scss): \
    SCSS processing failed: file "stdin", line 25, col 1: \
        File to import not found or unreadable: vendor/normalize.
Built in 653 ms

if i execute hugo mod vendor it becomes clear - the whole vendor directory is missing from _vendor/github.com/kimcc/hugo-theme-noteworthy/assets/css/. (as far as i understood the mod vendor command copies the module's contents to the local directory _vendor, so your theme's css/vendor dir missing would kinda explain the error message).

for reference - the config file i used can be found here.

flypenguin avatar Aug 04 '21 11:08 flypenguin