google / docsy

A set of Hugo doc templates for launching open source content.
https://docsy.dev
Apache License 2.0
2.51k stars 879 forks source link

TOCSS: failed to transform "/scss/main.scss" - The target selector was not found. Use "@extend .td-box--dark !optional" #2048

Open dgitw opened 2 weeks ago

dgitw commented 2 weeks ago

Environment

Problem

Just upgraded to 0.10.0

Error: error building site: TOCSS: failed to transform "/scss/main.scss" (text/x-scss): "/home/node/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/google/docsy@v0.10.0/assets/scss/main.scss:45:11": The target selector was not found.
Use "@extend .td-box--dark !optional" to avoid this error.
hugo mod graph
[my repo] github.com/google/docsy@v0.10.0
github.com/google/docsy@v0.10.0 github.com/twbs/bootstrap@v5.3.3+incompatible
github.com/google/docsy@v0.10.0 github.com/FortAwesome/Font-Awesome@v0.0.0-20240402185447-c0f460dca7f7
[my repo] github.com/google/docsy/dependencies@v0.7.2
node -v
v22.2.0
dgitw commented 1 week ago

added following to _variables_project.css so build completes as workaround but obviously this changes styles

.td-footer {
  @extend .td-box--dark !optional;
}