kozakdenys / qr-code-styling

Automaticly generate your styled QR code in your web app.
https://qr-code-styling.com
MIT License
1.56k stars 497 forks source link

Can't use this with Node v22 #231

Closed maximebonhomme closed 1 month ago

maximebonhomme commented 1 month ago

We're using wagmi which uses this library under the hood. It looks like this new release has broken our build since this package is now locked in Node v20.

 ERR_PNPM_UNSUPPORTED_ENGINE  Unsupported environment (bad pnpm and/or Node.js version)

This error happened while installing the dependencies of wagmi@2.9.8
 at @wagmi/connectors@5.0.7
 at @metamask/sdk@0.20.3
 at @metamask/sdk-install-modal-web@0.20.2

Your Node version is incompatible with "qr-code-styling@1.7.1".

Expected version: 20.x
Got: v22.5.1

This is happening because the package's manifest has an engines.node field specified.
To fix this issue, install the required Node version.
kozakdenys commented 1 month ago

Thanks @maximebonhomme, I am looking into it 👀

kozakdenys commented 1 month ago

@maximebonhomme you can find fix in v1.7.2

maximebonhomme commented 1 month ago

@maximebonhomme you can find fix in v1.7.2

thank you so much!