Next.js Discord

Discord Forum

build failed on vercel

Answered
Naeemgg posted this in #help-forum
Open in Discord
locally its building totally fine but not on vercel
Answered by Ray
pnpm add sharp@0.33.1
View full answer

26 Replies

getting these errors
@Naeemgg Click to see attachment
what version of sharp you have in package.json?
try npm install --save sharp@0.33.1
"sharp": "^0.33.2",
its building fine now, idk why but I just used npm instead of pnpm
its my first encountering this kind of issue
Answer
let me try it
its building....
Ready
anddd its working completely fine now
but why is it not showing any warning/error in local builds?
something like sharp needs to be downgraded ....
@Naeemgg something like sharp needs to be downgraded ....
what version of next are you using
14.0.4
@Naeemgg 14.0.4
maybe try 14.1
previously installed 14.1 but its giving egde-time errors
then use 0.33.1
>=0.33.2 need next@14.1
@Ray Click to see attachment
if this is correct, I haven't test yet 😀
that might be other issue