0

I'm trying to use wasm-vips library for my next.js project. When I'm starting file from pure node it works fine, but I want to use it on front-end and that's where problems begins. I'm starting constantly getting errors: screenshot with next.js error I set up headers to make possible using sharedArrayBuffer, and they're working properly next.js config crossOriginIsolated is true enter image description here Other approach to import throws different error enter image description here enter image description here

So in general I understand that it's problem with import or webpack settings but I'm stuck and currently don't know how to fix them

I tried different imports, placing files from library in different places, environments, and it works well for node, but not so well for next.js even basic starter project

Andrew Still
  • 57
  • 1
  • 10

0 Answers0