ngx-qrcode icon indicating copy to clipboard operation
ngx-qrcode copied to clipboard

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

Open anakin59490 opened this issue 5 years ago • 6 comments

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:

  • Node version: 10.15.3
  • Platform: Windows

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

anakin59490 avatar Aug 14 '20 12:08 anakin59490

Same on angular 8

alex88 avatar Oct 26 '20 20:10 alex88

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

HuangChunShui avatar Nov 28 '20 02:11 HuangChunShui

Has anyone found a fix for this issue?

Armando284 avatar Sep 12 '22 22:09 Armando284

Has anyone found a fix for this issue?

Did you find a solution for this???

sebafra avatar Dec 12 '22 20:12 sebafra

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

Armando284 avatar Dec 12 '22 23:12 Armando284

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

sebafra avatar Dec 13 '22 15:12 sebafra