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

Build Error #538

Open
KatieTheDev opened this issue Mar 15, 2025 · 5 comments
Open

Build Error #538

KatieTheDev opened this issue Mar 15, 2025 · 5 comments

Comments

@KatieTheDev
Copy link
Contributor

I have encountered the following error when trying to build my site:

Start building sites … 
hugo v0.145.0-666444f0a52132f9fec9f71cf25b441cc6a4f355+extended linux/amd64 BuildDate=2025-02-26T15:41:25Z VendorInfo=gohugoio

ERROR render of "/404" failed: "/home/runner/work/katiethe.dev/katiethe.dev/themes/terminal/layouts/_default/baseof.html:22:7": execute of template failed: template: 404.html:22:7: executing "footer" at <partial "footer.html" .>: error calling partial: "/home/runner/work/katiethe.dev/katiethe.dev/layouts/partials/footer.html:27:45": execute of template failed: template: partials/footer.html:27:45: executing "partials/footer.html" at <js.Build>: error calling Build: type <nil> not supported in Resource transformations
ERROR render of "/home/runner/work/katiethe.dev/katiethe.dev/content/about.md" failed: "/home/runner/work/katiethe.dev/katiethe.dev/themes/terminal/layouts/_default/baseof.html:22:7": execute of template failed: template: _default/single.html:22:7: executing "footer" at <partial "footer.html" .>: error calling partial: "/home/runner/work/katiethe.dev/katiethe.dev/layouts/partials/footer.html:27:45": execute of template failed: template: partials/footer.html:27:45: executing "partials/footer.html" at <js.Build>: error calling Build: type <nil> not supported in Resource transformations
ERROR render of "/home/runner/work/katiethe.dev/katiethe.dev/content/_index.md" failed: "/home/runner/work/katiethe.dev/katiethe.dev/themes/terminal/layouts/_default/baseof.html:22:7": execute of template failed: template: _default/index.html:22:7: executing "footer" at <partial "footer.html" .>: error calling partial: "/home/runner/work/katiethe.dev/katiethe.dev/layouts/partials/footer.html:27:45": execute of template failed: template: partials/footer.html:27:45: executing "partials/footer.html" at <js.Build>: error calling Build: type <nil> not supported in Resource transformations
ERROR render of "/posts" failed: "/home/runner/work/katiethe.dev/katiethe.dev/themes/terminal/layouts/_default/baseof.html:22:7": execute of template failed: template: _default/list.html:22:7: executing "footer" at <partial "footer.html" .>: error calling partial: "/home/runner/work/katiethe.dev/katiethe.dev/layouts/partials/footer.html:27:45": execute of template failed: template: partials/footer.html:27:45: executing "partials/footer.html" at <js.Build>: error calling Build: type <nil> not supported in Resource transformations
Total in 60 ms
Error: error building site: render: failed to render pages: render of "/categories" failed: "/home/runner/work/katiethe.dev/katiethe.dev/themes/terminal/layouts/_default/baseof.html:22:7": execute of template failed: template: _default/terms.html:22:7: executing "footer" at <partial "footer.html" .>: error calling partial: "/home/runner/work/katiethe.dev/katiethe.dev/layouts/partials/footer.html:27:45": execute of template failed: template: partials/footer.html:27:45: executing "partials/footer.html" at <js.Build>: error calling Build: type <nil> not supported in Resource transformations
Error: Process completed with exit code 1.
@KatieTheDev
Copy link
Contributor Author

Tag 4.2.0 caused a breaking change for anyone with a custom footer. @panr

@panr
Copy link
Owner

panr commented Mar 15, 2025

@KatieTheDev how does this line look in your code? Didn't you have any merge conflicts on updating the theme?

I assume this is related to missing prism.js file 🤔

@panr
Copy link
Owner

panr commented Mar 16, 2025

Btw @domainzero @KatieTheDev how do you modify footer.html? By manual changes inside the file in the theme directory, or by overriding it inside your root directory (as a new file in [root]/layouts/partials/footer.html)

@domainzero
Copy link

For me it was an override in the root directory. The override was from a pre-v4 version of terminal, and that is definitely what was causing the problem (syntax highlighting broken).

@KatieTheDev
Copy link
Contributor Author

KatieTheDev commented Mar 17, 2025 via email

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

3 participants