About this post:
Locally, my version of the site starts up fine, everything works.
But on the server, when building the site, an error occurs:
ERROR 2023/05/17 20:21:40 render of “page” failed: execute of template failed: template: _default/documentation.html:25:9: executing “_default/documentation.html” at <partial “aside.html” (dict “page” . “pages” $pages)>: error calling partial: “/var/www/gc_website/layouts/partials/aside.html:28:24”: execute of template failed: template: partials/aside.html:10:18: executing “partials/aside.html” at <partial “section-menu/walk.html” .>: error calling partial: execute of template failed: template: partials/aside.html:37:14: executing “partials/section-menu/walk.html” at <partial “section-menu/walk.html” (dict “page” $.page “pages” .)>: error calling partial: execute of template failed: template: partials/aside.html:37:14: executing “partials/section-menu/walk.html” at <partial “section-menu/walk.html” (dict “page” $.page “pages” .)>: error calling partial: execute of template failed: template: partials/aside.html:28:24: executing “partials/section-menu/walk.html” at <$.page.Ancestors>: can’t evaluate field Ancestors in type interface {}
aside.html:
<button class="aside-button" type="button" id="aside-button" aria-haspopup="true" aria-expanded="false" aria-label="Open sidebar">
</button>
<div class="aside-wrapper" >
<div class="aside">
<div class="aside__inner" id="aside-inner">
<aside>
<h2>Navigation</h2>
<nav class="menu-section">
<ul>
{{- partial "section-menu/walk.html" . }}
</ul>
</nav>
</aside>
</div>
</div>
</div>
{{- define "partials/section-menu/walk.html" }}
{{- range .pages }}
{{- if not .Params.exclude }}
<li>
{{- if .Params.sectionMenuTextOnly }}
<h3>{{ .LinkTitle }}</h3>
{{- else }}
{{- if .Eq $.page }}
<a class="active" aria-current="page" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{- else if in $.page.Ancestors . }}
<a class="ancestor" aria-current="true" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{- else }}
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{- end }}
{{- end }}
{{- with .Pages }}
<button type="button" class="aside-list__toggle"></button>
<ul class="aside-list">
{{- partial "section-menu/walk.html" (dict "page" $.page "pages" .) }}
</ul>
{{- end }}
</li>
{{- end }}
{{- end }}
{{- end }}
What could be different locally on my computer and on the server and create this error? I have to add something to config file, or the reason in different versions of hugo?