Tengo problemas para encontrar una biblioteca que funcione en un componente web shadowDom. El único que parece muy recomendable requiere un "id" como argumento (no encontrará el id porque está en shadowDom.
this.id = crypto.getRandomValues(new Uint32Array(1)); this.data = new QRCode().makeCode(this.id); //this.data = QR.encode(this.id); this.qrCode = btoa(this.data.toByteArray()));Aquí está la biblioteca: https://taisukef.github.io/qrcode-generator/es/QR.js