Closed mginod closed 3 months ago
Hello,
I'm using your (great) package version 1.0.5 in a Laravel project. My assets are bundled using Vite. After building my assets for prod, I have an error "require is not defined" in my console. I tracked down the error to this code:
// import QRCode from "qrcode" var QRCode = require("qrcode");
in lib/qrcode-with-logos.esm.js
When editing directly this file in my node_modules and using the commented import, it works just fine.
I checked in the repo and there is a pull request #15 that mentions this.
Is this something I can somehow fix on my part or should it be changed in the npm package?
Thank you for looking into this!
I will fix it in next version. The fastest way to solve this problem is that copying qrcode-with-logos.esm.js file to your project and fix it . Editing directly this file in your node_modules is not a Reliable way.
Hello, That updated version would be much appreciated! Is there an ETA? Thank you very much in advance :)
Hello @zxpsuper, same question as above, do you have an ETA for this ? Thanks
This package is perfect for what I am looking for... but I am also hitting the same issue as above.
Any timeline on the new release?
Forked and PR created: https://github.com/zxpsuper/qrcode-with-logos/pull/33
This package is perfect for what I am looking for... but I am also hitting the same issue as above.
Any timeline on the new release?
release 1.0.6 has fix this issue.
Hello,
I'm using your (great) package version 1.0.5 in a Laravel project. My assets are bundled using Vite. After building my assets for prod, I have an error "require is not defined" in my console. I tracked down the error to this code:
in lib/qrcode-with-logos.esm.js
When editing directly this file in my node_modules and using the commented import, it works just fine.
I checked in the repo and there is a pull request https://github.com/zxpsuper/qrcode-with-logos/pull/15 that mentions this.
Is this something I can somehow fix on my part or should it be changed in the npm package?
Thank you for looking into this!