Skip to content

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

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions