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

后端 未结 5 1070
耶瑟儿~
耶瑟儿~ 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 10:55

    This problem occurs by so many cases, one of the major reasons is installed version of @angular/cli is different to globally installed version of @angular/cli Make sure that both are same version. In other cases you have to update the devkit.

    Please have a look on these threads, you will get an idea:

    1. https://github.com/angular/angular-cli/issues/13172
    2. https://github.com/angular/angular-cli/issues/13861

提交回复
热议问题