Hello all,
I was looking at setting up a hugo theme following the these instructions. Right after creating my project, when copying the exampleSite files into my project root and running hugo server
I get the below GO error:
panic: interface conversion: interface {} is string, not map[string]interface {}
goroutine 1 [running]:
github.com/nicksnyder/go-i18n/i18n/bundle.parseTranslations(0xc0004e334c, 0x7, 0xc000215180, 0x33f, 0x33f, 0xd16ad1, 0xc000856d20, 0xc000872000, 0x33f, 0xc000215180)
github.com/nicksnyder/go-i18n/i18n/bundle/bundle.go:100 +0x761
github.com/nicksnyder/go-i18n/i18n/bundle.(*Bundle).ParseTranslationFileBytes(0xc000856ae0, 0xc0004e334c, 0x7, 0xc000215180, 0x33f, 0x33f, 0xc0004e32ac, 0xc0001091e0)
github.com/nicksnyder/go-i18n/i18n/bundle/bundle.go:75 +0xdb
github.com/gohugoio/hugo/langs/i18n.addTranslationFile(0xc000856ae0, 0x214fe40, 0xc0004b82d0, 0x4, 0x0)
github.com/gohugoio/hugo/langs/i18n/translationProvider.go:98 +0x13f
github.com/gohugoio/hugo/langs/i18n.(*TranslationProvider).Update(0xc000767040, 0xc000851440, 0x0, 0x0)
github.com/gohugoio/hugo/langs/i18n/translationProvider.go:79 +0x2d3
github.com/gohugoio/hugo/deps.(*Deps).LoadResources(0xc000851440, 0x0, 0x0)
github.com/gohugoio/hugo/deps/deps.go:178 +0x43
github.com/gohugoio/hugo/hugolib.applyDeps(0xc000731080, 0xc000795180, 0xc000712120, 0x0, 0x0, 0x2149c40, 0xc000295440, 0xc0001a3000, 0x19, 0x27, ...)
github.com/gohugoio/hugo/hugolib/hugo_sites.go:466 +0x395
github.com/gohugoio/hugo/hugolib.newHugoSites(0xc000731080, 0xc000795180, 0x0, 0x0, 0x0, 0x2149c40, 0xc000295440, 0x0, 0x0, 0x0, ...)
github.com/gohugoio/hugo/hugolib/hugo_sites.go:355 +0x5d8
github.com/gohugoio/hugo/hugolib.NewHugoSites(0xc000731080, 0xc000795180, 0x0, 0x0, 0x0, 0x2149c40, 0xc000295440, 0x0, 0x0, 0x0, ...)
github.com/gohugoio/hugo/hugolib/hugo_sites.go:488 +0x113
github.com/gohugoio/hugo/commands.(*commandeer).loadConfig.func3()
github.com/gohugoio/hugo/commands/commandeer.go:399 +0x264
sync.(*Once).doSlow(0xc000345450, 0xc00063f940)
sync/once.go:66 +0xe3
sync.(*Once).Do(...)
sync/once.go:57
github.com/gohugoio/hugo/commands.(*commandeer).loadConfig(0xc00078a270, 0xc000780101, 0x2105a80, 0xc0004567b0)
github.com/gohugoio/hugo/commands/commandeer.go:358 +0x865
github.com/gohugoio/hugo/commands.newCommandeer(0x101, 0xc0003c6340, 0x2103340, 0xc0003ecbc0, 0xc0004189c0, 0x0, 0x0, 0x0, 0x1ad8020, 0xc000308c00, ...)
github.com/gohugoio/hugo/commands/commandeer.go:185 +0x241
github.com/gohugoio/hugo/commands.initializeConfig(0x101, 0xc0003c6340, 0x2103340, 0xc0003ecbc0, 0xc0004189c0, 0x0, 0x0, 0xc0000b6c90)
github.com/gohugoio/hugo/commands/hugo.go:123 +0x76
github.com/gohugoio/hugo/commands.(*serverCmd).server(0xc0003ecbc0, 0xc000104000, 0x2ea7da8, 0x0, 0x0, 0x0, 0x0)
github.com/gohugoio/hugo/commands/server.go:238 +0x1c5
github.com/spf13/cobra.(*Command).execute(0xc000104000, 0x2ea7da8, 0x0, 0x0, 0xc000104000, 0x2ea7da8)
github.com/spf13/cobra/command.go:826 +0x460
github.com/spf13/cobra.(*Command).ExecuteC(0xc00070ca00, 0xc000456560, 0xc00063fec0, 0x177b022)
github.com/spf13/cobra/command.go:914 +0x2fb
github.com/gohugoio/hugo/commands.Execute(0xc00000e070, 0x1, 0x1, 0x408fcf, 0xc0000360b8, 0x0, 0x0)
github.com/gohugoio/hugo/commands/hugo.go:89 +0xb9
main.main()
github.com/gohugoio/hugo/main.go:23 +0x6c
What does the above error mean? Is it a syntax error or something like a missing error? Which file is complaining?
I don’t know GO at all and am quite lost here…
Thanks!