I have a theme which I have set up as a Hugo module (with a go.mod). The theme then imports alpinejs from this repo - https://github.com/gohugoio/hugo-mod-jslibs/tree/master/alpinejs - via its config.toml.
If I do a
hugo mod vendor from the theme directory I can see the partial in the _vendor sub-directory.
However, when I import the theme into my main project, the partial is not available. When running the Hugo server I’m getting the following error message.
...partial "jslibs/alpinejs/script-src.html" not found
If I do
hugo mod vendor from my main project directory, the themes files are available but nothing from the sub-module.
Do the imported files from the theme not filter down to the main project?
I’ve read many articles on Hugo modules but can’t quite get this nested module working. Please can someone help clarify?