Wonder if you can help me.
Trying to publish new site into Netlify from Github and facing below error
10:22:06 PM: hugo v0.88.1-5BC54738+extended linux/amd64 BuildDate=2021-09-04T09:39:19Z VendorInfo=gohugoio
10:22:07 PM: Error: Error building site: "/opt/build/repo/layouts/_default/_markup/render-image.html:43:20": execute of template failed: template: _default/_markup/render-image.html:43:20: executing "_default/_markup/render-image.html" at <$image.Permalink>: nil pointer evaluating resource.Resource.Permalink
Where I know what that issue is, the problem is, that there is no failure in any local builds. Tried serving hugo and just publishing (creating public folder) in two different operating systems (macOS and Windows) and none of them reported any problems but when trying to publish to netlify suddenly I got the issue above.
The default Hugo version on Netlify is below the one that introduced image processing which is the most common reason that happens. If you have a netlify.toml please post here, if not, read the documentation and set appropriate version numbers:
Just wondering do you have such an example, an image render hook template that prints a console error message specifying the page in which the error happened?
We’ve all been beaten by this error.
Typically when this happens I revert changes incrementally until I find the culprit.
Sometimes it’s not obvious at all and it does take time.
A more specific console message would help.