You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And when I try to deploy it on Netlify, I face the following error.
> hugo --gc --minify
Total in 27 ms
Error: failed to prune cache "assets": remove /home/x/x/resources/_gen/assets/js/js/main.js_d11fe7b62c27961c87ecd0f2490357b9.content: no such file or directory
This also happens on my local machine.
Hugo Static Site Generator v0.54.0/extended linux/amd64 BuildDate: 2019-02-01T13:31:26Z
I checked the issue and found the problem. The "bug" is the resources folder in the theme itself. Usually, you don't need this folder, so feel free and delete it. Then it should work as expected.
Hugo asked me to add the folder to the repo gohugoio/hugoThemes#577 (comment), because hello-friend-ng uses the Hugo asset pipelines instead of webpack (or similar tools). That means that your assets are genreated completly fresh when you compile your project.
Netlify had some issues with this pipeline stuff... I don't know if it is already fixed.
@digitalcraftsman Sorry for tagging you again. Are there any news regarding Netlify? Is it possible to delete the resources folder from the repo without crashing the example pages?
Activity
bep commentedon Mar 9, 2019
Pretty sure this is the same as #5673
rahilwazir commentedon Mar 9, 2019
I'm not sure but to give you more detail..
Terminal

File Tree
There are two nested
jsandscssdirectories, Is it intentional?Let me know if it still the same as #5673
neslinesli93 commentedon Apr 2, 2019
@rahilwazir did you find the bug?
rahilwazir commentedon Apr 2, 2019
Nah man, I changed my theme and it worked out for me. Are you using the theme?
neslinesli93 commentedon Apr 2, 2019
Yep, however I went and used
hello-friend, and it works like a charm. I'd like to use this one because the defaults look way better...neslinesli93 commentedon Apr 3, 2019
Unfortunately we can't open issues on
hello-friend-ngrepo, so I'm pinging @rhazdon and hope he sees itrhazdon commentedon Apr 3, 2019
@neslinesli93, thanks for pinging. I will take a look at it. I've also enabled the issue tracker for the repo...
neslinesli93 commentedon Apr 3, 2019
Thanks man, I was sending you an email regarding the issue, but thankfully you enabled issues...
rhazdon commentedon Apr 3, 2019
@neslinesli93, @rahilwazir
I checked the issue and found the problem. The "bug" is the
resourcesfolder in the theme itself. Usually, you don't need this folder, so feel free and delete it. Then it should work as expected.Hugo asked me to add the folder to the repo gohugoio/hugoThemes#577 (comment), because
hello-friend-nguses the Hugo asset pipelines instead of webpack (or similar tools). That means that your assets are genreated completly fresh when you compile your project.Netlify had some issues with this pipeline stuff... I don't know if it is already fixed.
neslinesli93 commentedon Apr 3, 2019
How can we do this by keeping your theme as a submodule?
rhazdon commentedon Apr 3, 2019
@digitalcraftsman, do you know maybe, if the issue regarding the hugo asset pipeline and the theme page (Netlify) is solved?
rhazdon commentedon Apr 15, 2019
@digitalcraftsman Sorry for tagging you again. Are there any news regarding Netlify? Is it possible to delete the
resourcesfolder from the repo without crashing the example pages?THeK3nger commentedon Jun 17, 2019
The https://github.com/htr3n/hyde-hyde theme has the same problem.
purge resources #gohugoio/hugo#5745
josineto commentedon Sep 9, 2019
The Hermit theme has the same problem (as @kimfucious and I have reported here).
@Track3
jpcaruana commentedon Apr 16, 2020
For me force removing
_genfolders before runnning hugo works fine, and build is ok on netlifyIn my
netlify.toml:command = "find . -name _gen -exec rm -rf {} + ; hugo --gc --minify"Hope this helps
hayorov commentedon May 10, 2020
Reasonable workaround. Thanks.
github-actions commentedon Feb 3, 2022
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.