Unable to implement placeholder blur of remote image (Shopify cdn) using the recommended Placeholder package implementation along with the Next.js Image component. Wondering if this has something to do with the Edge runtime that the vercel/commerce package uses.
- error TypeError: Native module not found: sharp
at Object.sharp (/Users/.../Git/.../.next/server/app/page.js:29:18)
at __webpack_require__ (/Users/.../Git/.../.next/server/edge-runtime-webpack.js:37:33)
at fn (/Users/.../Git/.../.next/server/edge-runtime-webpack.js:325:21)
at __webpack_require__ (/Users/.../Git/.../.next/server/edge-runtime-webpack.js:37:33)
at fn (/Users/.../Git/.../.next/server/edge-runtime-webpack.js:325:21)
at eval (./getBase64.ts:5:70)
at Module.(rsc)/./getBase64.ts (/Users/.../Git/.../.next/server/app/page.js:2744:1)
at __webpack_require__ (/Users/.../Git/.../.next/server/edge-runtime-webpack.js:37:33)
at fn (/Users/.../Git/.../.next/server/edge-runtime-webpack.js:325:21)
at eval (./components/layout/spread/index.tsx:10:67)
at Module.(rsc)/./components/layout/spread/index.tsx (/Users/.../Git/.../.next/server/app/page.js:2711:1)
at __webpack_require__ (/Users/.../Git/.../.next/server/edge-runtime-webpack.js:37:33)
at fn (/Users/.../Git/.../.next/server/edge-runtime-webpack.js:325:21)
at eval (./app/page.tsx:13:82)
at Module.(rsc)/./app/page.tsx (/Users/.../Git/.../.next/server/app/page.js:2450:1)
at __webpack_require__ (/Users/.../Git/.../.next/server/edge-runtime-webpack.js:37:33)
at Function.fn (/Users/.../Git/.../.next/server/edge-runtime-webpack.js:325:21)
at async Promise.all (index 0)
Unable to implement placeholder blur of remote image (Shopify cdn) using the recommended Placeholder package implementation along with the Next.js Image component. Wondering if this has something to do with the Edge runtime that the vercel/commerce package uses.
Any help would be appreciated.
getbase64.ts
components/layout/spread/index.tsx
Terminal output:
package.json
next.config.mjs