Cordobo / angularx-qrcode

A fast and easy-to-use Angular QR Code Generator library with Ivy support
https://cordobo.github.io/angularx-qrcode/
MIT License
459 stars 127 forks source link

Make 2.1.4 version work with ES2015 #184

Closed KyllVLP closed 1 year ago

KyllVLP commented 1 year ago

I'm working on a larger project on an existing website where the ES target cannot be changed. I saw this under the known issues and was hoping it could get resolved. I've tried using the angularx-qrcode in a local test build in ES5, and it works fine. Transpiling to ES2015 gives me the error: ERROR in No suitable injection token for parameter 'renderer' of class 'QRCodeComponent'. no type or decorator

Cordobo commented 1 year ago

Hi @KyllVLP

thanks for opening this issue. I no longer work with angular 8 so I this might no be of help, but did you try to import from the fesm2015 folder within the angularx-qrcode package?

fesm2015

Cordobo commented 1 year ago

I'm closing this for now, please re-open if this is still an issue.