LiveChat angular plugin - TypeError: Cannot read property 'kind' of undefined

I’m trying to build my Angular app, i am using live-chat plugin for angular, but i receive this error:

ERROR in ./node_modules/@livechat/angular-widget/fesm2015/livechat-angular-widget.js Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js): TypeError: Cannot read property ‘kind’ of undefined

Do I need to update something? With ng serve it’s working pretty good.

Angular CLI: global 9.1.7, local 7.3.10 Node: 10.15.3 Npm: 6.14.8 @livechat/angular-widget: 0.3.1
Pro

Hello! :wave:

Could you reproduce the same error with small example that will use only our library ( without additional 3rd party libraries )?

If it’s possible, it would be best if you could open issue on the github with aforementioned example available. :slight_smile:

I think you should get source from github because I faced this same issue when I made android app related to the website. and just posted that error like

ERROR in ./node_modules/livechat/angular-widget/fesm2018/livechat-angular-widget.js Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):

and one of the developer get to me personally and solved it… Ahhh i forgot the solution i wish I could paste here his answer.