Cannot read property 'entries' of undefined - Angular CLI

后端 未结 13 561
再見小時候
再見小時候 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:28

    This happened to me after updating the project from v6 to v7. However, I missed updating @schematics/angular to a newer version. Apparently, there was some compatibility mismatch that wasn't noted in the package.jsons that caused this issue.

    The best way I've found to figure out what the versions of stuff should be is to create a new project with the version of Angular you are trying to use. Once created, look at it's package.json to figure what versions should be compatible with what.

提交回复
热议问题