pixelastic / norska

🏔️ Custom SSG using Pug, Webpack, PostCSS and Tailwind.
https://projects.pixelastic.com/norska/
MIT License
8 stars 0 forks source link

Can't build sharp on Netlify #126

Closed pixelastic closed 3 years ago

pixelastic commented 3 years ago

Seems liks builds on Netlify are failing because sharp can't be correctly installed.

The solution seem to be to remove yarn.lock, delete node_modules, reinstall everything and commit again.

pixelastic commented 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

pixelastic commented 3 years ago

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.