Skip to content

With Hugo v0.152.0, getting error: invalid module config for "github.com/google/docsy": "../../node_modules/bootstrap" #2345

@tekezo

Description

@tekezo

Environment

  • Version of Docsy you are using: v0.12.0
  • How are you using Docsy? As a:
    • Hugo module
  • Version of Hugo you are using (output of hugo version): hugo v0.152.0+extended+withdeploy darwin/arm64 BuildDate=2025-10-21T16:29:49Z VendorInfo=brew
  • OS:
    • macOS

Problem

With Hugo v0.152.0, I'm getting the following error at running "hugo server".

Error: command error: failed to load modules: invalid module config for "github.com/google/docsy": "../../node_modules/bootstrap": mount source must be a local path for modules/themes

It seems this is happening because that behavior was disallowed by this PR in Hugo.

On my end, it started working after I removed the configuration for Docsy as an NPM package from hugo.yaml.
https://github.com/google/docsy/blob/main/hugo.yaml#L39-L44

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions