Skip to content

Created Module runs from the local file system, but not when loaded remotely. #1330

Answered by d-oit
anoduck asked this question in Help
Discussion options

You must be logged in to vote

Try to remove the dist/ folder from the .gitignore or mount the package like this:

https://discourse.gohugo.io/t/esbuild-looks-like-we-can-finally-get-solid-hugo-modules-support/28757

If it works local then you have a dist folder local but not in your github repo to mount for the build. You could check all download files in the vendor folder of your hinode site.
Your github repo must include a full working build version.

Use the mod-leaf as reference
Otherwise, you load the js / css on all pages.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@d-oit
Comment options

Answer selected by anoduck
@anoduck
Comment options

@d-oit
Comment options

@d-oit
Comment options

@anoduck
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants