Cannot read property 'entries' of undefined - Angular CLI

In our case was old package: @angular/pwa Once we update it from: 0.6.8 to 0.7.5 everything started working fine.


I reinstalled NodeJS. I deleted node_modules folder from user directory and hit npm install and it started working


Hi Shivprasad Koirala,

I had the same problem as you but the solution did not do it for me. Frankly speaking, it is a little bit odd that re-installing node.js fixes your problem because it should not conflict with Angular/CLI but in any case, good for you.

For my case, the solution was a bit different. I had accidentally once tried to create a new project in my username's folder. This was wrong, and I had canceled the procedure but it seems like that it had created one or two things. So in that case the steps are:

  1. Navigate to your username folder by opening windows explorer and typing in the address bar %HomePath%
  2. Check if the file package.json and if the folder node_module exist. If so, you can delete them safely.

If you have a Linux, again you need to navigate to your home directory and delete both those entries.