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:
I set up headers to make possible using sharedArrayBuffer, and they're working properly
crossOriginIsolated is true
Other approach to import throws different error
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