Skip to content

Hugoplate submodule error: Failed to load module #184

Open
@tushantin

Description

@tushantin

What is your Hugo Extended Version

hugo v0.145.0-666444f0a52132f9fec9f71cf25b441cc6a4f355+extended windows/amd64 BuildDate=2025-02-26T15:41:25Z VendorInfo=gohugoio

What is your Go Version

go version go1.24.0 windows/amd64

What is your Node.js Version

v21.0.0

What is your Operating System

Windows 11

Check for Existing Issues

  • I have searched and found no relevant issues.

Expected Behavior

Hi. I tried loading Hugoplate as a submodule under the main project "themes" folder and tried the processes. When I run "hugo server" it works under themes/hugoplate folder, but it won't run in the root folder even when specifying hugoplate in the .toml file.

The errors I keep receiving is stuff like this:
Error: command error: failed to load modules: module "github.com/hugomods/mermaid" not found in "D:\\Projects\\Website\\cyanlos\\themes\\github.com\\hugomods\\mermaid"; either add it as a Hugo Module or store it in "D:\\Projects\\Website\\cyanlos\\themes".: module does not exist

I've tried everything... I've tried "hugo mod tidy", "hugo mod init cyanlos", etc. I've even tried to copy-paste the go.mod files to root. It downloads the module, but STILL gives me that same error despite downloading the modules.

Steps to Reproduce

  1. Add Hugoplate as a submodule under an existing website project's themes folder
  2. Run the usual project-setup and install within the hugoplate folder under themes folder
  3. Go back to project root folder and try to run "hugo server".

Code Reproduction URL

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions