node:internal/errors:496
ErrorCaptureStackTrace(err);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "buffer" argument must be of type string or an instance of Buffer, TypedArray, DataView, or ArrayBuffer. Received type boolean (false)
at new NodeError (node:internal/errors:405:5)
at zlibBufferSync (node:zlib:171:13)
at Object.syncBufferWrapper [as brotliCompressSync] (node:zlib:792:14)
at Object.sync (â–‹â–‹â–‹â–‹â–‹/node_modules/brotli-size/dist/index.js:41:19)
at Image.resize (â–‹â–‹â–‹â–‹â–‹/node_modules/@11ty/eleventy-img/img.js:522:36)
at async run (â–‹â–‹â–‹â–‹â–‹/node_modules/p-queue/dist/index.js:163:29) {
code: 'ERR_INVALID_ARG_TYPE'
}
When using remote SVG Image with
svgShortCircuit: "size"
andsvgCompressionSize: "br"
, I'm getting error. Works fine with a local SVG file.Here is the code I use to reproduce the error:
...and, here is the error I get: