Angular cli build prod: TypeError: Cannot read property 'kind' of undefined

后端 未结 5 1055
耶瑟儿~
耶瑟儿~ 2020-12-06 10:45

I try to build project with Angular CLI ng build --prod and I get this error:

ERROR in TypeError: Cannot read property \'kind\' of undefi

5条回答
  •  借酒劲吻你
    2020-12-06 11:15

    Keep in mind now TypeScript 3.6.4 is out. Still, it's ok to read below what wasn't really working.

    TypeScript <= 3.6.3 presents this issue, Handle parentless nodes in isParameterPropertyDeclaration.

    If you install 3.7 (dev or the new beta), it will compile fine.


    Note: if you receive an ERROR on building, regarding the TS version, just disable it via tsconfig.
    For that use disableTypeScriptVersionCheck

    "angularCompilerOptions": {
      "disableTypeScriptVersionCheck": true
    },
    "compilerOptions": {
     ...
    

    Follow the comment's chat if any other problem emerges.

提交回复
热议问题