panic: interface conversion: *hugolib.pageState is not resource.NameNormalizedProvider: missing method NameNormalized
Any ideas on how I can fix this?
Here’s the full output:
hugo v0.126.1-3d40aba512931031921463dafc172c0d124437b8+extended linux/amd64 BuildDate=2024-05-15T10:42:34Z VendorInfo=gohugoio
panic: interface conversion: *hugolib.pageState is not resource.NameNormalizedProvider: missing method NameNormalized
goroutine 80 [running]:
github.com/gohugoio/hugo/hugolib.(*pageMap).getOrCreateResourcesForPage.func1({0xc0000b9b88?, 0x417d520?})
/root/project/hugo/hugolib/content_map_page.go:561 +0x545
github.com/bep/lazycache.(*Cache[...]).GetOrCreate(0x41722e0, {0xc00249c060, 0x2b}, 0xc001d15ab0)
/root/project/gomodcache/github.com/bep/lazycache@v0.4.0/lazycache.go:125 +0x17a
github.com/gohugoio/hugo/cache/dynacache.(*Partition[...]).doGetOrCreate(...)
/root/project/hugo/cache/dynacache/dynacache.go:400
github.com/gohugoio/hugo/cache/dynacache.(*Partition[...]).GetOrCreate(0x4177a80, {0xc00249c060, 0x2b}, 0xc001d15ab0)
/root/project/hugo/cache/dynacache/dynacache.go:388 +0x46
github.com/gohugoio/hugo/hugolib.(*pageMap).getOrCreateResourcesForPage(0xc000c0ec60, 0xc0014f8e00)
/root/project/hugo/hugolib/content_map_page.go:537 +0xb5
github.com/gohugoio/hugo/hugolib.(*pageState).Resources(...)
/root/project/hugo/hugolib/page.go:347
github.com/gohugoio/hugo/hugolib.(*pageState).renderResources.func1()
/root/project/hugo/hugolib/page.go:506 +0x3f
sync.(*Once).doSlow(0x4d26a0?, 0xc001875f20?)
/usr/local/go/src/sync/once.go:74 +0xc2
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:65
github.com/gohugoio/hugo/hugolib.(*pageState).renderResources(0x413cf40?)
/root/project/hugo/hugolib/page.go:505 +0x55
github.com/gohugoio/hugo/hugolib.pageRenderer(0xc0018844e0, 0xc000976c00, 0xc001875f20, 0xc00076a360, 0xc00062ab00?)
/root/project/hugo/hugolib/site_render.go:134 +0x233
created by github.com/gohugoio/hugo/hugolib.(*Site).renderPages