I run in angular 4 project with ng serve and i get error
Cannot read property \'length\' of undefined
but I don\'t have any property length in
In my case, it's mysterious. But it won't hurt to offer what I had witnessed and maybe a bit history. None or maybe some historical event might have caused it but I really don't know.
18.04.4 LTS (Bionic Beaver)LXC within 19.10 ubuntu host with npm 6.14.2, node10.16.3 20.04 LTS(Focal Fossa). Write some code. Remove a package called angular-shepherd. Try to build --prod. This errors shows up during angular Generating ES5 bundles.