Skip to content

Help: Migrate to Go Module; Error: Error building site: TOCSS: failed to transform "scss/main.scss" #1360

Answered by deining
aimeeu asked this question in Q&A
Discussion options

You must be logged in to vote

You came quite far with your upgrade!

The error message

1:44:31 PM: Error: Error building site: TOCSS: failed to transform "scss/main.scss" (text/x-scss): "/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/twbs/[email protected]+incompatible/scss/utilities/_api.scss:20:20": Undefined variable: "$rfs-mq-value".

indicates that you are using bootstrap 5.2.3, but docsy 0.6.0 needs v4.6.2.

The solution is quite easy. At project root, issue:

hugo mod get -u github.com/twbs/[email protected]

This will bring bootstrap dependency to the correct version. Afterwards, you can successful preview your project via hugo server.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by aimeeu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants