Default Hugo template appears broken #6472
-
SummaryHi, perhaps I'm using things incorrectly, but I'm new to Vercel and I just started a default Hugo template and first received this error when deploying:
I updated the Node version in package.json and then received this error:
I was expecting everything in the build environment to be available and ready to go. Thanks ExampleNo response Steps to ReproduceSimply create a new Hugo template and try to deploy it in the Vercel web app |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Can you share the link of the template? |
Beta Was this translation helpful? Give feedback.
-
@leblowl what is your node version on Vercel |
Beta Was this translation helpful? Give feedback.
-
The Build Image that is used when Node Version |
Beta Was this translation helpful? Give feedback.
-
Well I'm not really sure what's going on. I joined Vercel, chose the Hugo template in Vercel and it didn't build (nothing custom), so just informing ya'll as there might be a bug here. When I looked just now, the Node version in Vercel was set to 18. And yet I received that error above 2 days ago:
Just now, I downgraded the Node version in package.json (from 20 to 18), and switched the project Node version in Vercel from 18 to 20 and it built. I then downgraded the project Node version in Vercel from 20 to 18 and it still built. I just created a new Hugo template in Vercel and the project Node version is set to Node 20 (package.json version set to 18) and this time it built successfully without any modification (https://github.com/leblowl/hugo2/tree/main). Your docs say the Node 20 build image doesn't contain Go, but it looks like it does to me (if I'm understanding correctly that the project Node version controls the build image... I don't see any logs in the actual deployment that tells me what image it's using). Anyways, I don't really need a specific answer or resolution out of this, just providing this information in case it's helpful to ya'll. |
Beta Was this translation helpful? Give feedback.
The Build Image that is used when Node Version
20.x
is selected does not contain thehugo
executable. Instead, you should select18.x
to use the build image which does containhugo
.