-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install from npm does not build browser version #346
Comments
I had the same issue, but your tip worked. Thanks! |
Same issue when you do "npm install --save qrcode" as the docs state. Works when you do "npm install -s soldair/node-qrcode", as stated above but you get this in your package.json: "qrcode": "github:soldair/node-qrcode". I don't think that's ideal. |
The build directory is present in version The following worked for me: <canvas id="canvas"></canvas>
<script src="./node_modules/qrcode/build/qrcode.js"></script>
<script>
QRCode.toCanvas(
document.getElementById("canvas"),
"sample text",
function (error) {
if (error) console.error(error);
console.log("success!");
}
);
</script> |
Great, I'm using v1.5.1 for now. |
The path now as of Try this instead |
don't! @dolanmiu it's not the same; |
Workaround WFM too |
if I use 'npm install -s qrcode' there is no build subdirectory, but if I do 'npm install -s soldair/node-qrcode' there is.
The text was updated successfully, but these errors were encountered: