[LibSquoosh] URL invalid
See original GitHub issueDescribe the bug Use the github action to compress images. It’s says can’tt find the wasm files. But there is in repo.
git clone 'https://github.com/SettingDust/image-compress-action' # ref=main
docker cp src=/home/runner/.cache/act/SettingDust-image-compress-action@main dst=/actions/
TypeError [ERR_INVALID_URL]: Invalid URL: /actions/SettingDust-image-compress-action@main/dist/mozjpeg_node_enc-13aa762d.wasm
at onParseError (internal/url.js:259:9)
at new URL (internal/url.js:335:5)
at Object.7275 (/actions/SettingDust-image-compress-action@main/webpack:/image-compress-action/node_modules/@squoosh/lib/build/index.js:1:1)
at __nccwpck_require__ (/actions/SettingDust-image-compress-action@main/webpack:/image-compress-action/webpack/bootstrap:21:1)
at Object.3109 (/actions/SettingDust-image-compress-action@main/webpack:/image-compress-action/lib/main.js:37:1)
at __nccwpck_require__ (/actions/SettingDust-image-compress-action@main/webpack:/image-compress-action/webpack/bootstrap:21:1)
at /actions/SettingDust-image-compress-action@main/webpack:/image-compress-action/webpack/startup:4:1
at Object.<anonymous> (/actions/SettingDust-image-compress-action@main/dist/index.js:12521:12)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
Error: exit with `FAILURE`: 1
Expected behavior Compress
Version:
- OS w/ version: ubuntu-18.04 in docker. Host is ubuntu-20.04 in docker.
- Node version: May be 14.17.0. There isn’t detail in action log.
- npm version: May be 6.14.13.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11
Top Results From Across the Web
The unofficial way to embed Squoosh into your web app.
Once it was all built, all I had to do was copy the WASM and JS bindings into my repository and call it...
Read more >Giulio Ganci (@toriphes) / Twitter
Introducing: libSquoosh libSquoosh is an experimental Node library on top of which the Squoosh CLI is built, giving you all the capabilities for...
Read more >Introducing libSquoosh - web.dev
We are happy to introduce libSquoosh, an experimental Node library on top of which the Squoosh CLI is built, giving you all the...
Read more >#458 - Upgrade libSquoosh for TypeScript types - www-new - CSC Git
www-new - Computer Science Club of the University of Waterloo's website.
Read more >Picasso Library Load Error - Stack Overflow
picasso don't load gif image for that you have to use Glide library. Check this link it might help you ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Status: Same problem 😔
1. Environment
2. Console output
I get the same result for different images in different formats.
Thanks.
Forr anyone running into the same problem: Temporarily downgrading to node >=v16 when using
@squoosh/lib@0.4.0
is a successful workaround. Thank you 💪