Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build site #10

Closed
justinryanc opened this issue Mar 8, 2023 · 11 comments
Closed

Unable to build site #10

justinryanc opened this issue Mar 8, 2023 · 11 comments

Comments

@justinryanc
Copy link

Unable to build site due to error below... any idea what I'm doing wrong?

Start building sites …
hugo v0.111.1-39a4a3cf676533859217805c36181c7a3dfa321c+extended windows/amd64 BuildDate=2023-03-02T10:08:26Z VendorInfo=gohugoio
ERROR 2023/03/08 16:36:18 render of "taxonomy" failed: "C:\Users\jrcha\OneDrive\Documents\hugo\justinryanc\themes\paige\layouts_default\baseof.html:33:11": execute of template failed: template: _default/taxonomy.html:33:11: executing "_default/taxonomy.html" at <partial "paige/scripts.html" $page>: error calling partial: "C:\Users\jrcha\OneDrive\Documents\hugo\justinryanc\themes\paige\layouts\partials\paige\scripts.html:47:3": execute of template failed: template: partials/paige/scripts.html:47:3: executing "partials/paige/scripts.html" at <partial "paige/script.html" (dict "src" "paige/bootstrap/bootstrap.bundle.js")>: error calling partial: "C:\Users\jrcha\OneDrive\Documents\hugo\justinryanc\themes\paige\layouts\partials\paige\script.html:20:26": execute of template failed: template: partials/paige/script.html:20:26: executing "partials/paige/script.html" at <$href>: undefined variable: $href
ERROR 2023/03/08 16:36:18 render of "taxonomy" failed: "C:\Users\jrcha\OneDrive\Documents\hugo\justinryanc\themes\paige\layouts_default\baseof.html:33:11": execute of template failed: template: _default/taxonomy.html:33:11: executing "_default/taxonomy.html" at <partial "paige/scripts.html" $page>: error calling partial: "C:\Users\jrcha\OneDrive\Documents\hugo\justinryanc\themes\paige\layouts\partials\paige\scripts.html:47:3": execute of template failed: template: partials/paige/scripts.html:47:3: executing "partials/paige/scripts.html" at <partial "paige/script.html" (dict "src" "paige/bootstrap/bootstrap.bundle.js")>: error calling partial: "C:\Users\jrcha\OneDrive\Documents\hugo\justinryanc\themes\paige\layouts\partials\paige\script.html:20:26": execute of template failed: template: partials/paige/script.html:20:26: executing "partials/paige/script.html" at <$href>: undefined variable: $href
Error: Error building site: failed to render pages: render of "home" failed: "C:\Users\jrcha\OneDrive\Documents\hugo\justinryanc\themes\paige\layouts_default\baseof.html:33:11": execute of template failed: template: _default/list.html:33:11: executing "_default/list.html" at <partial "paige/scripts.html" $page>: error calling partial: "C:\Users\jrcha\OneDrive\Documents\hugo\justinryanc\themes\paige\layouts\partials\paige\scripts.html:47:3": execute of template failed: template: partials/paige/scripts.html:47:3: executing "partials/paige/scripts.html" at <partial "paige/script.html" (dict "src" "paige/bootstrap/bootstrap.bundle.js")>: error calling partial: "C:\Users\jrcha\OneDrive\Documents\hugo\justinryanc\themes\paige\layouts\partials\paige\script.html:20:26": execute of template failed: template: partials/paige/script.html:20:26: executing "partials/paige/script.html" at <$href>: undefined variable: $href
Built in 16 ms

@willfaught
Copy link
Owner

Which version are you using?

@justinryanc
Copy link
Author

Which version are you using?

45.0

@BaiqingL
Copy link

BaiqingL commented Mar 9, 2023

Having the same problem

@willfaught
Copy link
Owner

Sorry about that. That looks like a copy/paste error. I published a fix in v0.46.0. Please try it out.

@jotwg
Copy link

jotwg commented Mar 9, 2023

Tried v0.46.1:

Start building sites … 
hugo v0.111.2-4164f8fef9d71f50ef3962897e319ab6219a1dad+extended linux/amd64 BuildDate=2023-03-05T12:32:20Z VendorInfo=gohugoio
Error: Error building site: TOCSS-DART: failed to transform "paige/bootstrap/paige.scss" (text/x-scss): "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/willfaught/[email protected]/assets/paige/bootstrap/paige.scss:4:8": Can't find stylesheet to import.

@jotwg
Copy link

jotwg commented Mar 9, 2023

ok, after adding the mounts in config.yaml it seems to work now so far.
(instructions should be updated accordingly)

thx

@justinryanc
Copy link
Author

ok, after adding the mounts in config.yaml it seems to work now so far. (instructions should be updated accordingly)

thx

Would you explain what mount you did? I am getting same error you got.

@jotwg
Copy link

jotwg commented Mar 9, 2023

see the 'module:' lines in config.yaml under the root dir of this repo (https://github.com/willfaught/paige/blob/master/config.yaml), i.e. add them to your config.yaml

@justinryanc
Copy link
Author

see the 'module:' lines in config.yaml under the root dir of this repo (https://github.com/willfaught/paige/blob/master/config.yaml), i.e. add them to your config.yaml

That did it, thanks! I had tried adding them but didn't include the module: line just the mount: line. Appreciate the help!

@justinryanc
Copy link
Author

@willfaught Thank you for fixing the issue, I am fixed on my end now after pulling new code and adding the mounts as @jotwg described. Appreciate the help guys! :)

@willfaught
Copy link
Owner

I updated the install instructions to make the mount config clearer. Sorry for the confusion.

The original issue seems resolved, so closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants