Skip to content

Hugoplate submodule error: Failed to load module #184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
tushantin opened this issue Apr 3, 2025 · 0 comments
Open
1 task done

Hugoplate submodule error: Failed to load module #184

tushantin opened this issue Apr 3, 2025 · 0 comments

Comments

@tushantin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant