techiediaries / ngx-qrcode

An Angular 9/10 Component Library for Generating QR (Quick Response) Codes
https://techiediaries.com/ngx-qrcode/
MIT License
192 stars 62 forks source link

Angular 6 build : TypeError: Cannot read property 'kind' of undefined #64

Open anakin59490 opened 4 years ago

anakin59490 commented 4 years ago

I'm getting the following error message when ng build --prod :

image

Environment

Angular version: 6.1.4

Version of @techiediaries/ngx-qrcode: "@techiediaries/ngx-qrcode": "9.1.0",

For Tooling issues:

Others: "devDependencies": { "@angular-devkit/build-angular": "~0.7.4", "@angular-devkit/build-ng-packagr": "~0.7.4", "@angular-devkit/core": "0.4.2", "@angular-devkit/schematics": "0.4.2", "@angular/cli": "^6.1.5", "@angular/compiler-cli": "6.1.4", "@angular/language-service": "6.1.4",

Thank you for your help

alex88 commented 4 years ago

Same on angular 8

HuangChunShui commented 3 years ago

Same on angular6,solve by "npm install ngx-qrcode2"

Armando284 commented 2 years ago

Has anyone found a fix for this issue?

sebafra commented 1 year ago

Has anyone found a fix for this issue?

Did you find a solution for this???

Armando284 commented 1 year ago

Has anyone found a fix for this issue?

Did you find a solution for this???

No, actually I had to go back and use qrcode v1.5.1 and ngx-qrcode2 v0.0.9 since I can not update the project dependencies It's quite similar to use <ngx-qrcode [qrc-value]="couponCode" [qrc-element-type]="'canvas'" [qrc-class]="'qr-code'"

qrcElement

sebafra commented 1 year ago

Has anyone found a fix for this issue?

Did you find a solution for this???

No, actually I had to go back and use qrcode v1.5.1 and ngx-qrcode2 v0.0.9 since I can not update the project dependencies It's quite similar to use <ngx-qrcode [qrc-value]="couponCode" [qrc-element-type]="'canvas'" [qrc-class]="'qr-code'" #qrcElement

Finally I solve it with this:

buildOptimizer: true To buildOptimizer: false

In angular.json This worked for me Ref: https://stackoverflow.com/questions/63029367/angular-8-typeerror-cannot-read-property-kind-of-undefined-when-build-my-c