Hugo failed to render theme because some functions does not exists(go1.8)

I follow the quick guide to build my website, but catch the following errors when rendering theme:

$ hugo server --theme=hugo_theme_robust --buildDrafts
ERROR: 2017/06/27 09:39:42 template.go:350: template: theme/_default/baseof.amp.html:19: function "replaceRE" not defined
ERROR: 2017/06/27 09:39:42 template.go:350: template: theme/_default/baseof.html:15: function "replaceRE" not defined
ERROR: 2017/06/27 09:39:42 template.go:350: template: theme/_default/li.html:9: function "default" not defined
ERROR: 2017/06/27 09:39:42 template.go:350: template: theme/_default/li_sm.html:9: function "default" not defined
ERROR: 2017/06/27 09:39:42 template.go:350: template: theme/_default/summary.html:9: function "default" not defined
RROR: 2017/06/27 09:39:42 template.go:350: template: theme/partials/single_json_ld.html:12: function "default" not defined
ERROR: 2017/06/27 09:39:42 template.go:350: template: theme/partials/single_meta.html:1: function "replaceRE" not defined

And I have tried another themes, but got similar errors.

Go version: 1.8

Hugo Static Site Generator v0.16-DEV BuildDate: 2016-02-07T01:14:17+08:00

Please help, thanks.

You must either:

  1. Download a newer binary version of Hugo
  2. Pull and build the latest Hugo source

The version you have is 15 months old.

1 Like

Thanks a lot, it works.