question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'kind' of undefined on building an app with the library

See original GitHub issue

First 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:open
  • Created 4 years ago
  • Reactions:6
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
mmaltsevcommented, Dec 13, 2019

@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!

2reactions
mmaltsevcommented, Dec 10, 2019

@avmaisak @michaelbazos Thank you guys! I tried to remove package_lock and reinstall node_modules but 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found