Comments (6)
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.
from qrcode-with-logos.
Hello, That updated version would be much appreciated! Is there an ETA? Thank you very much in advance :)
from qrcode-with-logos.
Hello @zxpsuper, same question as above, do you have an ETA for this ? Thanks
from qrcode-with-logos.
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?
from qrcode-with-logos.
Forked and PR created: #33
from qrcode-with-logos.
Related Issues (13)
- global is not defined HOT 2
- 能否支持一下vite2+vue3 构建的项目 HOT 2
- FEATURE REQUEST: Add feature to create QR code for WIFI Connection HOT 1
- wide logo HOT 4
- nodeQrCodeOptions.color.light set value "transparent" does not work HOT 1
- Promise never throw reject when generate image failed
- Please publish release 1.0.2 HOT 5
- How do I change the color of QR?
- Release new version HOT 1
- Importing issues with the package HOT 1
- different qr code style HOT 2
- Typescript definition error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qrcode-with-logos.