Closed 0xclem closed 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/synthetixio/kwenta/wuHtopEUWToSFibBpG2PkBfc7Qax
✅ Preview: https://kwenta-git-fix-build-broken-synthetixio.vercel.app
Vercel builds are currently broken because
next-optimized-images
hasn't been updated for a while and uses an old version ofsharp
which doesn't seem to be compatible with latest node & npm version.Here is the fix:
next-optimized-images
from the repooptimized-images-loader
(which is used by the library above to load SVGs via webpack) to be using a newer version ofsharp
which is compatible with latest node & npm.@svgr/core
to package.json (needed to make it work withoutnext-optimized-images
)optimized-images-loader
(see here) topackage.json
react-optimized-image
(which was included in the initial library we removed) topackage.json
optimized-images-loader