Closed jordan-loeser closed 1 year ago
That... makes so little sense. It sounds like either a bug in NodeJS's WebAssembly loader or a weird incompatibility between the version of Emscripten I used and NodeJS v18. Or maybe Typescript causing some strange issue. Can you test await WebP.Image.initLib()
without Typescript active? I have no experience with TS.
Edit - Can confirm it doesn't work in NodeJS v18.17.0 for ... some reason. Testing further.
Can confirm it was indeed an issue with Emscripten and Node v18+. Pushed a fix here and to NPM. node-webpmux 3.1.8 should work.
This fix worked! Thanks so much for the quick resolution! (noting for myself this was fixed in b438517c9042a11e6870a4cba4c554f413aee64f)
Hello! I am trying to convert an animated canvas into an animated webp file. When I try to initialize the library in order to use
img.setImageData()
, I get the following error:As far as I can see, the path listed correctly points to the installed file in node_modules. For context, this is the pattern I am using:
For context, I am using the following on a Mac running Apple Silicon.
node-webpmux
:^3.1.7
^5.1.6
v18.16.1
Has anyone encountered this before?