-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
./public/images/avatar.jpg TypeError: Failed to parse URL from /node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.wasm #1260
Comments
Oddly, I came back to my computer after stepping away, and VS code had this output at terminal: |
Maybe related: |
Same issue with Node v18.8.0
Downgrading to Node v16 fixed the issue temporarily. |
Worked fine for me with node 18.0. Seems like the bug was introduced in a minor version of node 18 |
Unfortunately, due to a few people leaving the team, and staffing issues resulting from the current economic climate (ugh), the CLI and libsquoosh packages are no longer actively maintained. I know that sucks, but there simply isn't the time & people to work on this. If anyone from the community wants to fork it, you have my blessing. The squoosh.app web app will continue to be supported and improved. |
Avoids issue in Google sqoosh, which seems to be unmaintained. See: GoogleChromeLabs/squoosh#1260.
upgrading |
Describe the bug
Error running
yarn build
.info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
info - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
info - Creating an optimized production build
Failed to compile.
./public/images/avatar.jpg
TypeError: Failed to parse URL from /Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.wasm
at new Request (node:internal/deps/undici/undici:4832:19)
at Agent.fetch2 (node:internal/deps/undici/undici:5524:29)
at Object.fetch (node:internal/deps/undici/undici:6351:20)
at fetch (node:internal/bootstrap/pre_execution:197:25)
at instantiateAsync (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:424:28)
at createWasm (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:447:13)
at /Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:1480:19
at Object.instantiateEmscriptenWasm (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/emscripten-utils.js:15:12)
at Object.dec (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/codecs.js:156:42)
at Object.decodeBuffer (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/impl.js:55:31)
Import trace for requested module:
./pages/index.tsx
./public/images/avatar03.jpg
TypeError: Failed to parse URL from /Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.wasm
at new Request (node:internal/deps/undici/undici:4832:19)
at Agent.fetch2 (node:internal/deps/undici/undici:5524:29)
at Object.fetch (node:internal/deps/undici/undici:6351:20)
at fetch (node:internal/bootstrap/pre_execution:197:25)
at instantiateAsync (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:424:28)
at createWasm (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:447:13)
at /Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:1480:19
at Object.instantiateEmscriptenWasm (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/emscripten-utils.js:15:12)
at Object.dec (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/codecs.js:156:42)
at Object.decodeBuffer (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/impl.js:55:31)
Import trace for requested module:
./pages/my-nft-wallets-history/index.tsx
./public/images/collection-bg.jpg
TypeError: Failed to parse URL from /Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.wasm
at new Request (node:internal/deps/undici/undici:4832:19)
at Agent.fetch2 (node:internal/deps/undici/undici:5524:29)
at Object.fetch (node:internal/deps/undici/undici:6351:20)
at fetch (node:internal/bootstrap/pre_execution:197:25)
at instantiateAsync (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:424:28)
at createWasm (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:447:13)
at /Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:1480:19
at Object.instantiateEmscriptenWasm (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/emscripten-utils.js:15:12)
at Object.dec (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/codecs.js:156:42)
at Object.decodeBuffer (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/impl.js:55:31)
Import trace for requested module:
./src/components/listing-detail-view/buyer.tsx
./src/components/listing-detail-view/index.ts
./pages/listing-detail-view/[type].tsx
./public/images/default-long-list.jpg
TypeError: Failed to parse URL from /Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.wasm
at new Request (node:internal/deps/undici/undici:4832:19)
at Agent.fetch2 (node:internal/deps/undici/undici:5524:29)
at Object.fetch (node:internal/deps/undici/undici:6351:20)
at fetch (node:internal/bootstrap/pre_execution:197:25)
at instantiateAsync (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:424:28)
at createWasm (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:447:13)
at /Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:1480:19
at Object.instantiateEmscriptenWasm (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/emscripten-utils.js:15:12)
at Object.dec (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/codecs.js:156:42)
at Object.decodeBuffer (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/impl.js:55:31)
Import trace for requested module:
./src/layouts/onboarding/onboarding.component.tsx
./pages/account-created/index.tsx
./public/images/gallery-background-1.jpg
TypeError: Failed to parse URL from /Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.wasm
at new Request (node:internal/deps/undici/undici:4832:19)
at Agent.fetch2 (node:internal/deps/undici/undici:5524:29)
at Object.fetch (node:internal/deps/undici/undici:6351:20)
at fetch (node:internal/bootstrap/pre_execution:197:25)
at instantiateAsync (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:424:28)
at createWasm (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:447:13)
at /Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:1480:19
at Object.instantiateEmscriptenWasm (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/emscripten-utils.js:15:12)
at Object.dec (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/codecs.js:156:42)
at Object.decodeBuffer (/Volumes/data/code/neutrinos/node_modules/next/dist/server/lib/squoosh/impl.js:55:31)
Import trace for requested module:
./pages/index.tsx
The text was updated successfully, but these errors were encountered: