Skip to content
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

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

Open
anakin59490 opened this issue Aug 14, 2020 · 6 comments
Open

Comments

@anakin59490
Copy link

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

@alex88
Copy link

alex88 commented Oct 26, 2020

Same on angular 8

@HuangChunShui
Copy link

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

@Armando284
Copy link

Has anyone found a fix for this issue?

@sebafra
Copy link

sebafra commented Dec 12, 2022

Has anyone found a fix for this issue?

Did you find a solution for this???

@Armando284
Copy link

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
Copy link

sebafra commented Dec 13, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants