Win 10/64, WSL1, Debian-Linux, hugo v0.98.0+extended.
-
There is a non-Hugo repo A (“hugo_baseghsvs”) with Bootstrap SCSS in folder
node_modules/bootstrap/scss
. -
There is a Hugo repo B (“scss-test”)
- which mounts that folder (scss-test/config.yml at main · GHSVS-de/scss-test · GitHub)
- and a file /assets/scss/template.scss to be rendered to CSS via ToCSS pipe
- in layout list.html
-
When I run
hugo server --disableFastRender --cleanDestinationDir --renderToDisk
in repo B I get error:
Start building sites …
hugo v0.98.0+extended linux/amd64 BuildDate=unknown
Error: Error building site: TOCSS: failed to transform "scss/template.scss" (text/x-scss): SCSS processing failed: file "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!g!h!s!v!s-de/hugo_baseghsvs@v0.0.0-20220506155728-d7e2c4126ce2
...
/node_modules/bootstrap/scss/_mixins.scss", line 6, col 1: File to import not found or unreadable: vendor/rfs.
It’s this folder/file: hugo_baseghsvs/node_modules/bootstrap/scss/vendor/_rfs.scss
The weird part:
- When I rename the containing Bootstrap folder
vendor
tovendorix
or so the SCSS compilation works es expected AFTER I’ve changed the@import
line in_mixins.scss
accordingly (https://github.com/GHSVS-de/hugo_baseghsvs/blob/main/node_modules/bootstrap/scss/_mixins.scss#L6-L8). - When I rename it back compilation fails.
When the Bootstrap SCSS is directly integrated in repo B (without mounts) there are no issues and SCSS compiles successfully.
Can somebody explain what’s wrong here?
Thank you!