Next.js Discord

Discord Forum

Sharp.js Not Working During Build

Unanswered
Whiteleg shrimp posted this in #help-forum
Open in Discord
Whiteleg shrimpOP
Hello, was wondering if anyone can help me out or offer some suggestions. I have a next.js project that builds perfectly fine on my local dev but when i deploy it I am facing a install issue for sharp.
The Main problem is sharp is not loading the correct binary libary during build and is using the one from my local dev. I have tried flagging it as a env vari, post install script, making sure cache and everything is deleted etc, set up a a yarnrc.yaml file for support architectures but still facing issues.

1 Reply

Whiteleg shrimpOP