Closed sndrem closed 2 years ago
can you please try it with node 16?
It works fine on my M1
Also, you might have installed the wrong versions of the plugin/packages.
Did you use the command from the readme to install SQIP?
npm install sqip@canary sqip-plugin-primitive@canary sqip-plugin-svgo@canary sqip-plugin-data-uri@canary
Node 16 + npm install sqip@canary sqip-plugin-primitive@canary sqip-plugin-svgo@canary sqip-plugin-data-uri@canary
and npm install -g sqip-cli@canary
did the trick for me. Thank you!
I have the same issue on a MacBook Air M2 with SQIP Canary and Node 16:
TypeError: (0 , _sqip.default) is not a function
at sqipCLI (/Users/nicolashoizey/.nvm/versions/node/v16.19.0/lib/node_modules/sqip-cli/dist/sqip-cli.js:194:29)
at async /Users/nicolashoizey/.nvm/versions/node/v16.19.0/lib/node_modules/sqip-cli/dist/wrapper.js:9:3
I ran
npm install -g sqip@canary sqip-plugin-primitive@canary sqip-plugin-svgo@canary sqip-plugin-data-uri@canary
npx sqip -i ./src/photos/**/*.jpg
@axe312ger should I open a new issue?
@nhoizey if still exists, please new ticket yeah. It works on my M1 though :/
Operating system: macOS Monterey v. 12.5.1
Node version
Npm version
When running the command
sqip -i bilde.jpeg -o bilde.svg -m 1 -n 10 -b 9
I get the error below
Any idea how to get past the problem so I can run the sqip command?