Error: can't evaluate field ContentDir in type *langs.Language

I’m new to this type of static generation and I’ve been trying to troubleshoot this for hours, but I’m at a loss… The output I’m getting as well as my repository are below. Truly any help would be appreciated.

Error: error building site: render: failed to render pages: render of "page" failed: "/var/folders/6t/ss63rk2918j2b6bx63_b4g540000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hbstack/blog@v0.11.0/layouts/blog/single.html:2:5": execute of template failed: template: blog/single.html:2:5: executing "main" at <partial "hb/modules/blog/single" .>: error calling partial: "/var/folders/6t/ss63rk2918j2b6bx63_b4g540000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hbstack/blog@v0.11.0/layouts/partials/hb/modules/blog/single.html:25:8": execute of template failed: template: partials/hb/modules/blog/single.html:25:8: executing "partials/hb/modules/blog/single.html" at <partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-post-content-end" "Page" .)>: error calling partial: "/var/folders/6t/ss63rk2918j2b6bx63_b4g540000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugomods/hugopress@v0.1.0/layouts/partials/hugopress/functions/render-hooks.html:17:8": execute of template failed: template: partials/hugopress/functions/render-hooks.html:17:8: executing "partials/hugopress/functions/render-hooks.html" at <partial .partial $ctx>: error calling partial: "/var/folders/6t/ss63rk2918j2b6bx63_b4g540000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hbstack/blog/modules/content-panel@v0.1.0/layouts/partials/hugopress/modules/hb-blog-post-content-panel/hooks/hb-blog-post-content-end.html:1:3": execute of template failed: template: partials/hugopress/modules/hb-blog-post-content-panel/hooks/hb-blog-post-content-end.html:1:3: executing "partials/hugopress/modules/hb-blog-post-content-panel/hooks/hb-blog-post-content-end.html" at <partial "hb/modules/content-panel/index" .Page>: error calling partial: "/var/folders/6t/ss63rk2918j2b6bx63_b4g540000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hbstack/content-panel@v0.1.0/layouts/partials/hb/modules/content-panel/index.html:6:7": execute of template failed: template: partials/hb/modules/content-panel/index.html:6:7: executing "partials/hb/modules/content-panel/index.html" at <partial "hb/modules/content-panel/repo" .>: error calling partial: "/var/folders/6t/ss63rk2918j2b6bx63_b4g540000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hbstack/content-panel@v0.1.0/layouts/partials/hb/modules/content-panel/repo.html:21:41": execute of template failed: template: partials/hb/modules/content-panel/repo.html:21:41: executing "partials/hb/modules/content-panel/repo.html" at <site>: can't evaluate field ContentDir in type *langs.Language

Repository

cc: @razon

1 Like

Hi, upgrade the content panel module should work.

$ hugo mod get -u github.com/hbstack/content-panel
hugo: collected modules in 531 ms
hugop go: upgraded github.com/hbstack/content-panel v0.1.0 => v0.2.1

Worked perfectly, thanks!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.