V0.152.0 - Error: command error: failed to load modules

Evening all,

Just done the move from 0.151.0 to 0.152.0 and on my first attempt at building a site I’m in the process of adding to, I got this error:

hugo -D --cleanDestinationDir --gc --templateMetrics --logLevel debug

Total in 94 ms
Error: failed to load modules: invalid module config for "github.com/ouhft/docsy": "../../node_modules/bootstrap": mount source must be a local path for modules/themes

I think the relevant part of my hugo.yaml config file is:

module:
    proxy: direct
    hugoVersion:
        extended: true
        min: "0.152.0"
    imports:
        - path: github.com/ouhft/docsy
          disable: false

Sadly I can’t share the full repository for ease of review.

I’m reading through the release notes, and Configure modules but I’m not seeing anything I’m missing - nor any kind of hint as to if/how I should rebuild the site (maybe something related to go.mod being replaced by hugo.mod? or how to transition to that?)

Suggestions please :slight_smile:

Thanks!
Carl

First hint might be whether I’m looking in the right place - is this my current repo that’s calling this module, or is it likely in the module itself?

For the moment go back to 0.151.2. And yes, this is related a module’s mount config.

Thanks - and likely the pragmatic answer (especially since it’s near midnight and I don’t have all that much time spare to Fix Forward as is my usual approach). Sadly that involves a new challenge for me that’s not Hugo’s problem: reverting Hugo via Homebrew on macOS

Seems this isn’t an unheard of skill, just not an easy one: Installing Old Versions with Homebrew | The Blog of Sam Craven (also a Hugo user it seems)

… I’ll attempt this dance in the morning I think :slight_smile:

See https://github.com/gohugoio/hugo/issues/14083.

1 Like

Resolved with v0.152.2.

1 Like

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