Topic: Error with webpack: TypeError: Cannot read property 'kind' of undefined

PositronBeam free asked 6 years ago


I published a small project, so you can reproduce the problem: https://github.com/PositronBeam/error-angularmd-webpack-build This build was working before we add AngularMD into the project. I used the free version, because I published this project on a publig Git, but we are using the Pro version (and have the same problem)  

PositronBeam free answered 6 years ago


Thank you Damian, this saved my day:
I found it was caused by tooptips.directive.ts line 18.
If I remove “@OnChange”.  building will work.


Now we will wait quietly for a correction from angularCLI / typescript / angularMD / whoever thinks there is something to do :) So we don't need anymore to modify files by hand in node_modules Btw: how did you find out where the problem was ? I am totally unable to find that. Did you use ng with some verbose option ? Or something like that ?

Damian Gemza staff commented 6 years ago

I found this on github ;) just I was searching internet for about 3 hours to find this solution ;)

Damian Gemza staff answered 6 years ago


Hi PositronBeam, This problem occurs when you're trying to do ng serve --prod or ng build--prod? If yes, please read my answer in topic below. That guys got same problem like you, and my code helped them. https://mdbootstrap.com/support/ng-build-prod-error/ Best Regards, Damian

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: Yes
Tags