Closed pixelastic closed 3 years ago
The error happened on monsters
as well, this time the exact same commit built correctly on the debug-sharp
branch but failed on master. I have no idea what is wrong, and so far answers from support haven't been very helpful
I managed to fix it by renaming the branch from master
to main
. At first it still failed. Then I moved the sharp
dependency from devDependencies
to dependencies
and this time it built correctly. I could have sworn I had tried that before.
Seems liks builds on Netlify are failing because
sharp
can't be correctly installed.The solution seem to be to remove
yarn.lock
, deletenode_modules
, reinstall everything and commit again.