Recently, I updated my Angular application from version 8 to version 10. However, when I try to run ng serve, I encounter the following error message: ERROR in Cannot read property '0' of undefined This error seems quite obscure and difficult to understand.
I have attempted various solutions such as clearing the npm cache, deleting the package.lock.json file, removing node_modules, and reinstalling the npm packages. Unfortunately, none of these steps have resolved the issue.
Below is a snippet from my package.json file:
{
"name": "app-name",
"version": "0.0.0",
// scripts, dependencies, and devDependencies omitted for brevity
}
I am currently running node version 12.15.0 and npm version 6.13.4. Any assistance with this problem would be greatly appreciated.