-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
V 2.1.0: TypeError: Cannot read property 'kind' of undefined #69
Comments
@egodefroy Thanks for your bug report, could you please provide a working repo with which I can reproduce the issue? compare #67 |
Hi, having the same issue with an ionic app, when running --prod. |
@Cordobo |
solved the issue by downgrading to 1.6.4 |
I can't access the repo, I got a 404 |
Ok, what I've read so far, it could be an issue with an older @angular dependency (1) used in your package.json. I run ng build --prod with the following devDependencies and can't reproduce the error. Coiuld you try updating your dependencies to the ones below?
|
@Cordobo |
Ok, closing. Feel free to highlight my comment for other users with a smilie. |
@Cordobo Hi! What about @angular/cli ~7.3.5? Any fixes? |
@nicosoutn2014 I am using @angular/cli ^7.2.2 - I downgraded angularx-qrcode to ^1.6.4 which removed the issue for me. Be aware that the documentation is slightly different between versions. |
Got the same error and fixed it by downgrading the version, as stated above. |
The fix proposed on this thread only works for Angular 8+. This component is supposed to be compatible with Angular 7. Please provide a fix for Angular 7. |
I agree. Version 2.x is declared to work with Angular 6/7/8/9 which is incorrect, because you have to use @angular-devkit/build-angular 0.8xx in order to build prod without errors. This again requires Angular 8. This finally leaves version 2.x unusable with Angular 6+7 in a prod environment. |
I called
Thanks to all other suggestions. Very helpful :-) |
@andreElrico my issue was with a different library but it was throwing the same error, and the steps above got it working. Thanks! |
You are right. Just got my code working and found this thread after wondering why my production build is broken. Page still says that 2.x is compatible with Angular 7.x but this is incorrect. @Cordobo please give us working fix or correct the documentation. |
Hi @ALL I updated the readme to reflect the issue. |
when running
with this set of packages
This error happens
The text was updated successfully, but these errors were encountered: