react-optimized-image icon indicating copy to clipboard operation
react-optimized-image copied to clipboard

TypeError: Failed to parse URL @wasm-codecs/mozjpeg/lib/mozjpeg.wasm

Open ghost opened this issue 3 years ago • 0 comments

I'm running into an error during the build process. I'm using react-optimized-image but believe the issue is in the loader.

TypeError: Failed to parse URL from /home/ubuntu//core/front-end/node_modules/@wasm-codecs/mozjpeg/lib/mozjpeg.wasm
TypeError: Failed to parse URL from /home/ubuntu/core/front-end/node_modules/@wasm-codecs/mozjpeg/lib/mozjpeg.wasm
/home/flu0r1ne/dev/velos/core/front-end/node_modules/@wasm-codecs/mozjpeg/lib/mozjpeg.js:9
...
RuntimeError: abort(TypeError: Failed to parse URL from /home/ubuntu/core/front-end/node_modules/@wasm-codecs/mozjpeg/lib/mozjpeg.wasm). Build with -s ASSERTIONS=1 for more info.
    at process.abort (/home/ubuntu/core/front-end/node_modules/@wasm-codecs/mozjpeg/lib/mozjpeg.js:9:11556)

Node.js v18.2.0

react-optimized-image has been working in my project. I imagine either an update to webpack 5 or a dependency triggered this error.

Possibly related

ghost avatar Jun 16 '22 05:06 ghost