Topic: Error when build on AOT

Hishmad Abubakar Al Amudi pro asked 6 years ago


Hello,I got this error when build AOT: ERROR in : TypeError: Cannot read property \'kind\' of undefinedat nodeCanBeDecorated (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:7934:36)at nodeIsDecorated (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:7954:16)at nodeOrChildIsDecorated (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:7958:16)at Object.forEach (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:1500:30)at Object.childIsDecorated (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:7964:27)at getClassFacts (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:51492:20)at visitClassDeclaration (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:51517:25)at visitTypeScript (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:51376:28)at visitorWorker (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:51189:24)at sourceElementVisitorWorker (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:51221:28)at saveStateAndInvoke (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:51133:27)at sourceElementVisitor (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:51203:20)at visitNodes (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:49517:48)at Object.visitLexicalEnvironment (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:49550:22)at visitSourceFile (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:51463:53)at saveStateAndInvoke (/Users/hishmad/pwa/iternak/node_modules/typescript/lib/typescript.js:51133:27)

Damian Gemza staff answered 6 years ago


Hello, Your's problem was currently worked around on our forum. Please my latest post in this topic: https://mdbootstrap.com/support/ng-build-prod-error/ . Problem is caused by TypeScript, not by our MDB, so for now, I can only provide you this solution. 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

Resolved

Specification of the issue

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