Closed kpachhai closed 5 months ago
Core issue is this which happens when compiling sharp from source:
npm error ../metadata.cc:233:46: error: no member named 'NewOrCopy' in 'Napi::Buffer<char>'
npm error info.Set("exif", Napi::Buffer<char>::NewOrCopy(env, baton->exif, baton->exifLength, sharp::FreeCallback));
npm error ~~~~~~~~~~~~~~~~~~~~^
npm error ../metadata.cc:236:45: error: no member named 'NewOrCopy' in 'Napi::Buffer<char>'
npm error info.Set("icc", Napi::Buffer<char>::NewOrCopy(env, baton->icc, baton->iccLength, sharp::FreeCallback));
npm error ~~~~~~~~~~~~~~~~~~~~^
npm error ../metadata.cc:239:46: error: no member named 'NewOrCopy' in 'Napi::Buffer<char>'
npm error info.Set("iptc", Napi::Buffer<char>::NewOrCopy(env, baton->iptc, baton->iptcLength, sharp::FreeCallback));
npm error ~~~~~~~~~~~~~~~~~~~~^
npm error ../metadata.cc:242:45: error: no member named 'NewOrCopy' in 'Napi::Buffer<char>'
npm error info.Set("xmp", Napi::Buffer<char>::NewOrCopy(env, baton->xmp, baton->xmpLength, sharp::FreeCallback));
npm error ~~~~~~~~~~~~~~~~~~~~^
npm error ../metadata.cc:246:31: error: no member named 'NewOrCopy' in 'Napi::Buffer<char>'
npm error Napi::Buffer<char>::NewOrCopy(env, baton->tifftagPhotoshop,
npm error ~~~~~~~~~~~~~~~~~~~~^
Passing the following env variable (via using export locally, we'll have to adjust the CI build process) fixes it:
SHARP_IGNORE_GLOBAL_LIBVIPS=1
Description
Getting warnings while starting the hedera-wallet-snap-site
Steps to reproduce
yarn start
Then, we see the following warning: