Angular Cli Error: The serve command requires to be run in an Angular project, but a project definition could not be found

  • A+
Category:Languages

I'm getting issue when running ng server or ng serve --live-reload=true. Below is the issue which I'm getting when running these commands on terminal.

The serve command requires to be run in an Angular project, but a project definition could not be found. 

Please help me. I'm stuck on this issue.

Thanks in Advance.

 


I was also getting this issue and solved by running below command.

ng update @angular/cli --migrate-only --from=1.7.4 

getting ref from here https://github.com/angular/angular-cli/issues/12215#issuecomment-433593036

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: