# Theme error with "hugo mod -u"

**URL:** <https://discourse.gohugo.io/t/theme-error-with-hugo-mod-u/48410>\
**Category:** support\
**Created:** [February 21, 2024, 11:20pm UTC](https://discourse.gohugo.io/t/theme-error-with-hugo-mod-u/48410 "2024-02-21T23:20:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![divinerites](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/divinerites/32/12625_2.png) [@divinerites](https://discourse.gohugo.io/u/divinerites)\
**Post date:** [February 21, 2024, 11:20pm UTC](https://discourse.gohugo.io/t/theme-error-with-hugo-mod-u/48410/1 "2024-02-21T23:20:33Z")

</div>

I never had this error. Same code since long time.

Now if I do `hugo mod get -u` i get an error related to the theme declared in `config.toml`. Modules from `module.toml` seems to load well.

Note : I’m not 100% sure but i think it was ok on 0.123.0. But nothing sure.

[EDIT] the `gethugothemes.com` on all the lines is really strange on `$ hugo mod graph` command

```auto
$ hugo mod get -u
go: malformed module path "grandhotel": missing dot in first path element
Error: failed to get ["-d" "-u" "grandhotel"]: failed to execute 'go [get -d -u grandhotel]': failed to execute binary "go" with args [get -d -u grandhotel]: go: malformed module path "grandhotel": missing dot in first path element
 *errors.errorString

```

### config.toml

```toml
baseURL = "https://www.grandhotelkurhaus.com/"
timeout = "60s"
title = "Bienvenue - Grand Hotel & Kurhaus Arolla"
theme = ["grandhotel"]
...

```

### module.toml

```toml
[hugoVersion]
extended = true
min = "0.110.0"

[[imports]]
path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/components/preloader"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/components/render-link"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/images"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/shortcodes/button"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/shortcodes/notice"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/videos"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/tab"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/gallery-slider"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/seo-tools/basic-seo"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/seo-tools/site-verifications"

[[imports]]
path = "github.com/divinerites/plausible-hugo"

[[imports]]
path = "github.com/divinerites/divinerites-maps"

[[imports]]
path = "github.com/FortAwesome/Font-Awesome"
[[imports.mounts]]
source = "scss"
target = "assets/scss/fa-v6"
[[imports.mounts]]
source = "webfonts"
target = "static/webfonts"

```

```auto
$ go version
go version go1.20.4 darwin/amd64

```

```auto
$ hugo mod graph
gethugothemes.com github.com/gohugoio/hugo-mod-bootstrap-scss/v5@v5.20300.20200
github.com/gohugoio/hugo-mod-bootstrap-scss/v5@v5.20300.20200 github.com/twbs/bootstrap@v5.3.3+incompatible
github.com/gohugoio/hugo-mod-bootstrap-scss/v5@v5.20300.20200 github.com/gohugoio/hugo-mod-jslibs-dist/popperjs/v2@v2.21100.20000
gethugothemes.com github.com/gethugothemes/hugo-modules/components/preloader@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/components/render-link@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/images@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/shortcodes/button@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/shortcodes/notice@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/videos@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/tab@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/gallery-slider@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/seo-tools/basic-seo@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/seo-tools/site-verifications@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/divinerites/plausible-hugo@v1.19.4
gethugothemes.com github.com/divinerites/divinerites-maps@v1.1.6
gethugothemes.com github.com/FortAwesome/Font-Awesome@v0.0.0-20230802202706-f0c25837a3fe
gethugothemes.com grandhotel
grandhotel dr-seo-schema-org

```

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 22, 2024, 1:49am UTC](https://discourse.gohugo.io/t/theme-error-with-hugo-mod-u/48410/2 "2024-02-22T01:49:50Z")

</div>

The error is thrown with v0.120.0 and later. This is not related to v0.123.x.

This is what changed in v0.120.0:  
[https://github.com/gohugoio/hugo/pull/11573](https://github.com/gohugoio/hugo/pull/11573)

cc @razon

---

<div class="post-metadata">

**Author:** ![razon](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/razon/32/14882_2.png) [@razon](https://discourse.gohugo.io/u/razon)\
**Post date:** [February 22, 2024, 6:31am UTC](https://discourse.gohugo.io/t/theme-error-with-hugo-mod-u/48410/3 "2024-02-22T06:31:59Z")

</div>

Sorry about that, I forgot to ignore invalid module path, I rised a [PR](https://github.com/gohugoio/hugo/pull/12109) on GitHub for this.

---

<div class="post-metadata">

**Author:** ![divinerites](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/divinerites/32/12625_2.png) [@divinerites](https://discourse.gohugo.io/u/divinerites)\
**Post date:** [February 23, 2024, 2:08am UTC](https://discourse.gohugo.io/t/theme-error-with-hugo-mod-u/48410/4 "2024-02-23T02:08:19Z")

</div>

Solved with latest 0.123.2

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [February 25, 2024, 2:08am UTC](https://discourse.gohugo.io/t/theme-error-with-hugo-mod-u/48410/5 "2024-02-25T02:08:48Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
