TypeError: Cannot read property 'kind' of undefined on building an app with the library
See original GitHub issueFirst of all, great library. I was using it for a while but recently running ng build --prod started yielding the following error:
ERROR in ./node_modules/angular-feather/fesm5/angular-feather.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
TypeError: Cannot read property 'kind' of undefined
At first I thought that the problem was with webpack or some Angular dependencies. Unfortunately, it seems like the only solution that currently works for me is removing angular-feather library in order to make the build process work again.
Any ideas why it can be happening and what could be the solutions?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:7 (3 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'kind' of undefined · Issue ...
I'm using a tsc which is wired to a build from the current master, but just in case, I repeated both of the...
Read more >Angular cli build prod: TypeError: Cannot read property 'kind ...
This does let me run my project build, however I'm still getting a "TypeError: Cannot read property 'kind' of undefined" message when building...
Read more >angular/angular-cli - Gitter
This Custom library is build with ng-packagr. ... TypeError: Cannot read property 'kind' of undefined at ... Angular Library noApp project.
Read more >How to Avoid the Infamous "Cannot read properties of ... - Bitovi
That error message is telling you the function is returning undefined implicitly, but its return type does not include undefined in it. Awesome!...
Read more >LiveChat angular plugin - TypeError: Cannot read property ...
I'm trying to build my Angular app, i am using live-chat plugin for angular ... plugin - TypeError: Cannot read property 'kind' of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@michaelbazos I resolved the problem by fixing the version of the library at
6.0.4. It seems like one of your updates in the following versions introduced breaking changes. My suspicion is that it was the one with Angular 8 dependencies. It would be great if you could patch the current version of the portal and create a new minor / major version with breaking changes. Thanks!@avmaisak @michaelbazos Thank you guys! I tried to remove
package_lockand reinstallnode_modulesbut the error persists. Before creating this issue I upgraded the version of the library up to^6.0.8, unfortunately, it didn’t help either.I will try to recreate this error in a clean project and update the issue if succeed.