build failed on vercel
Answered
Naeemgg posted this in #help-forum
NaeemggOP
locally its building totally fine but not on vercel
26 Replies
NaeemggOP
getting these errors
@Naeemgg Click to see attachment
what version of sharp you have in
try
package.json?try
npm install --save sharp@0.33.1NaeemggOP
"sharp": "^0.33.2",
its building fine now, idk why but I just used
npm instead of pnpmits my first encountering this kind of issue
@Naeemgg its building fine now, idk why but I just used `npm` instead of `pnpm`
pnpm add sharp@0.33.1
Answer
NaeemggOP
let me try it
NaeemggOP
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 but why is it not showing any warning/error in local builds?
it has issue on vercel
@Naeemgg something like sharp needs to be downgraded ....
what version of next are you using
NaeemggOP
14.0.4
@Naeemgg 14.0.4
maybe try 14.1
NaeemggOP
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