Cannot read property 'entries' of undefined - Angular CLI

后端 未结 13 464
再見小時候
再見小時候 2021-01-18 02:04

I installed latest Angular CLI and was trying to create a new app i am getting the below error. I uninstalled , cleaned cache , cleaned by forcing it , installed , updated

13条回答
  •  悲哀的现实
    2021-01-18 02:50

    I had a similar issue. I tried explicitly installing @schematics/angular and setting my default cli collection using:

    npm i @schematics/angular --save-dev
    ng config cli.defaultCollection @schematics/angular
    

    It did not work for me.

    So instead, since I'm already using ngrx in my project, I opted for @ngrx/schematics as my default.

    npm i @ngrx/schematics -D
    ng config cli.defaultCollection @ngrx/schematics
    

    That worked for me.

提交回复
热议问题