Might be mistake in docs which is confusing, but below example is not working on nodejs
// For svg type
const qrCodeSvg = new QRCodeStyling({
jsdom: JSDOM, // this is required
type: "svg",
...options
});
qrCodeSvg.getRawData("svg").then((buffer) => {
fs.writeFileSync("test.svg", buffer);
});
In this case getRawData is hanging with no any errors. Only works when including canvas dependency
Might be mistake in docs which is confusing, but below example is not working on nodejs
In this case
getRawDatais hanging with no any errors. Only works when includingcanvasdependency