-
Notifications
You must be signed in to change notification settings - Fork 47
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
"ERROR ... render of "taxonomy" failed ... can't evaluate field Ancestors in type *hugolib.pageState" #24
Comments
The issue seems to be this:
You need Hugo v0.111.3. What does |
$ hugo env
hugo v0.102.3+extended linux/amd64 BuildDate=2022-09-13T20:32:22Z VendorInfo=ubuntu:0.102.3-1ubuntu1
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.19" |
Someone else encountered the Ancestors error: Their issue seemed to be an invalid site, somehow. When they started a new site from scratch, the issue went away. Do you see this error for a new site? |
I've added a note about the minimum Hugo version: 36c123f |
It looks like you need to upgrade Hugo to the latest version. You also need to install dart-sass-embedded. I'm not sure either of those things are related to the Ancestors error, though. |
It is a new (blank) website I just created with this tutorial of yours. |
Indeed, right now I have $ apt list --installed | grep hugo
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
hugo/kinetic,now 0.102.3-1ubuntu1 amd64 [installed] Fortunately, snap has a more up-to-date version: $ snap find hugo
Name Version Publisher Notes Summary
hugo 0.111.3 hugo-authors - Fast and Flexible Static Site Generator |
Please report back when you've tried it with Hugo 0.111.3 and dart-sass-embedded. I don't see that error on macOS using the setup instructions:
Can you show me your commands for creating the site, and the contents of your config.toml? |
Ah, the Ancestors field was added in Hugo 0.110.0. Upgrading should fix this. |
Sorry, I was busy coping with a well-known Snap's shortcoming, finding a workaround, then raising awareness about that among Hugo project maintainers: gohugoio/hugoDocs#2049 |
No worries. Thanks for reporting the Snap issue to the Hugo project! |
Since the cause is now understood, and the fix is to upgrade Hugo, I'll close this. |
hugo server --debug
and here's what I got in return:hugo mod graph
and here's what I got in return:The text was updated successfully, but these errors were encountered: