Local workspace file (‘angular.json’) could not be found. But same code works in another computer

it’s probably because your global @angular/ cli, project @angular/cli version or @angular/compiler-cli doesn’t match. Debugging this first of all run to check the global version of your angular, then compare the version with your angular project versions. if it matches with them or no. If something doesn’t match, update or downgrade it. For example to … Read more

Error: Local workspace file (‘angular.json’) could not be found

I just had the same problem. It’s related to release v6.0.0-rc.2, https://github.com/angular/angular-cli/releases: New configuration format. The new file can be found at angular.json (but .angular.json is also accepted). Running ng update on a CLI 1.7 project will move you to the new configuration. I needed to execute: This removed .angular-cli.json and created angular.json. If this leads to your project … Read more

tech