hbstack / hb

The core module of HB framework, which automatically load and compile module's TypeScript and SCSS.
https://hbstack.dev/
MIT License
18 stars 3 forks source link

runtime error: invalid memory address or nil pointer dereference #128

Closed razonyang closed 10 months ago

razonyang commented 11 months ago

This error occurs on local development when changes detected.

ERROR Rebuild failed: render: render of "404" failed: "C:\Users\razon\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hbstack\hb@v0.7.2\layouts\_default\baseof.html:6:32": execute of template failed at <partial "base/title" .>: error calling partial: "C:\Users\razon\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hugomods\base@v0.4.0\layouts\partials\base\title.html:13:19": execute of template failed at <partial "base/functions/sections-titles" .>: "C:\Users\razon\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hugomods\base@v0.4.0\layouts\partials\base\functions\sections-titles.html:6:19": execute of template failed at <$section.IsHome>: error calling IsHome: runtime error: invalid memory address or nil pointer dereference
razonyang commented 10 months ago

Fixed by https://github.com/hugomods/base/pull/34