I am writing an ionic Angular app, and recently cloned the repo to another machine.
Next I did an npm install
then an ionic serve
which results in the following error:
$ ionic serve ng.cmd run app:serve --host=localhost --port=8100
[ng] An unhandled exception occurred: Package "@angular-devkit/build-angular" has no builders defined.
[ng] See "C:\Users\wadef\AppData\Local\Temp\ng-NUA28c\angular-errors.log" for further details.
The error log has the following:
[error] Error: Package "@angular-devkit/build-angular" has no builders defined.
at WorkspaceNodeModulesArchitectHost.resolveBuilder (C:\code\powercut\node_modules@angular-devkit\architect\node\node-modules-architect-host.js:46:19)
at RunCommand.runSingleTarget (C:\code\powercut\node_modules@angular\cli\models\architect-command.js:175:55)
at async RunCommand.runArchitectTarget (C:\code\powercut\node_modules@angular\cli\models\architect-command.js:217:24)
I've tried:
- deleting
package-lock.json
and doing a freshnpm install
- specifically reinstalling
@angular-devkit/build-angular
- searching for the error message, but I cannot find a single reference to it