HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.2k stars 2.9k forks source link

Error: from config: failed to resolve output format "headers" from site config #2794

Closed ngoccuongnguyen closed 2 years ago

ngoccuongnguyen commented 2 years ago

Welcome to Wowchemy's GitHub repo 👋

We use GitHub only for bug reports and feature requests - it's our project management tool.

🚑 For help and questions, solve common issues with the Troubleshooting Guide.

For other issues, search if your question has already been asked on the community chat and forum, and if not, consider posting a new thread there.

Also, you can search and browse the extensive Wowchemy and Hugo documentation.

For questions on Blogdown, please reach out to the Blogdown community.

Describe the bug

After the recent update for the repo github.com/wowchemy/wowchemy-hugo-themes, the command hugo server produces "Error: from config: failed to resolve output format "headers" from site config".

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error '...'

Expected behavior

A clear and concise description of what you expected to happen.

Technical details:

If applicable, add screenshots to help explain the issue.

cbrueffer commented 2 years ago

This needs a lot more information to be useful, your own issue actually states the minimal information required.

Generally this problem is described in the Troubleshooting Guide: https://wowchemy.com/docs/hugo-tutorials/troubleshooting/#error-failed-to-resolve-output-format

However, I encountered this problem while updating from v5.5.0 to v5.6.0, and the solution in the guide (removing the hugo cache) wasn't sufficient.

What made it work for me (probably in addition to the above) was adding all three modules (wowchemy-plugin-netlify-cms, wowchemy-plugin-netlify, wowchemy/v5) in config.yaml and go.mod instead of just wowchemy/v5; I had omitted the other two since I don't use Netlify. See https://github.com/wowchemy/wowchemy-hugo-themes/blob/main/starters/academic/go.mod and https://github.com/wowchemy/wowchemy-hugo-themes/blob/main/starters/academic/config/_default/config.yaml