themefisher / airspace-hugo

Airspace Hugo theme for multipurpose use, like Portfolio, Blog, Business.
https://gethugothemes.com/products/airspace/?utm_source=airspace_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
351 stars 508 forks source link

Module Project is not Compatible with hug0 version 0.88 and 0.87 #201

Closed Mosesdejaviano closed 3 years ago

Mosesdejaviano commented 3 years ago

The module project on the airspace-Hugo theme is not compatible with the new Hugo version and 0.87. Please what version is the module project compatible with?

salim-b commented 3 years ago

I don't understand your issue. I'm using latest Hugo v0.88.1 and the theme works fine.

Mosesdejaviano commented 3 years ago

Thanks for your reply. I am using hugo v0.88.1, with Hugo --minify to create public file, in the public file, the module project wasnt found. On the terminal, it returned module project is not supported with this hugo version. So that is why i asked which version of hugo is the module project compatible with?. I really appreciate your prompt response

salim-b commented 3 years ago

Sorry, can't help (don't know what you referring to with "module project").

Mosesdejaviano commented 3 years ago

i mean creating a public file using hugo --minify doesnt create project folder in the public folder.

Mosesdejaviano commented 3 years ago

Thanks for the assistance. I have found solution to it.

fabiofenoglio commented 3 years ago

@Mosesdejaviano same issue here, would you mind sharing your solution?

Jean-Baptiste-Lasselle commented 2 years ago

hi @fabiofenoglio @salim-b , I think @Mosesdejaviano had the following error (which I get), during the hugo build phase :

$ hugo serve -b http://127.0.0.1:4545 -p 4545 --bind 127.0.0.1 -w
WARN 2021/09/28 18:40:38 Module "project" is not compatible with this Hugo version; run "hugo mod graph" for more information.
WARN 2021/09/28 18:40:38 Module "airspace-hugo" is not compatible with this Hugo version; run "hugo mod graph" for more information.
Start building sites … 
ERROR 2021/09/28 18:40:38 render of "page" failed: execute of template failed: template: _default/contact.html:3:4: executing "_default/contact.html" at <partial "head.html" .>: error calling partial: "/home/jibl/territoires-et-futurs-work/layouts/partials/head.html:56:102": execute of template failed: template: partials/head.html:56:102: executing "partials/head.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2021/09/28 18:40:38 render of "page" failed: execute of template failed: template: _default/pricing.html:3:4: executing "_default/pricing.html" at <partial "head.html" .>: error calling partial: "/home/jibl/territoires-et-futurs-work/layouts/partials/head.html:56:102": execute of template failed: template: partials/head.html:56:102: executing "partials/head.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2021/09/28 18:40:38 render of "page" failed: execute of template failed: template: _default/faq.html:3:4: executing "_default/faq.html" at <partial "head.html" .>: error calling partial: "/home/jibl/territoires-et-futurs-work/layouts/partials/head.html:56:102": execute of template failed: template: partials/head.html:56:102: executing "partials/head.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2021/09/28 18:40:38 render of "page" failed: execute of template failed: template: _default/service.html:3:4: executing "_default/service.html" at <partial "head.html" .>: error calling partial: "/home/jibl/territoires-et-futurs-work/layouts/partials/head.html:56:102": execute of template failed: template: partials/head.html:56:102: executing "partials/head.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
Built in 76 ms
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/about.html:3:4: executing "_default/about.html" at <partial "head.html" .>: error calling partial: "/home/jibl/territoires-et-futurs-work/layouts/partials/head.html:56:102": execute of template failed: template: partials/head.html:56:102: executing "partials/head.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat

here is how to reproduce the issue :

~$ export PATH=$PATH:/usr/local/go/bin && go version && hugo version && node --version && npm --version
go version go1.14.4 linux/amd64
Hugo Static Site Generator v0.78.2-959724F0 linux/amd64 BuildDate: 2020-11-13T10:08:14Z
v14.4.0
7.20.5
git clone git@github.com:territoires-et-futurs/siteweb.git ~/territoires-et-futurs-work
cd ~/territoires-et-futurs-work
git checkout ERROR_HUGO_BUILD1 && atom .
npm i
npm run spawn
# and then run :
hugo serve -b http://127.0.0.1:4545 -p 4545 --bind 127.0.0.1 -w

note : npm run spawn will actually install the airspace hugo theme, and setup the entire project layout

I do not have the fix yet (so if you have it, for the community)

salim-b commented 2 years ago

@Jean-Baptiste-Lasselle It seems you're using Hugo v0.78.2. The theme requires at least v0.87.