NPM Script 'start' Exited Without Completing Create-React

When I was working on the Microsoft Teams Personal app development, which has the code deployed to the Azure App Service and the backend is in .net core app. 

Everything was working as expected, but suddenly, one day, it started to give the below error.

Error

  • AggregateException: One or more errors occurred. (One or more errors occurred. (The NPM script ‘start’ exited without indicating that the create-react-app server was listening for requests. The error output was: ))
  • System.Threading.Tasks.Task.ThrowIfExceptional(bool includeTaskCanceledExceptions) InvalidOperationException: The NPM script ‘start’ exited without indicating that the create-react-app server was listening for requests.

After spending around 7 hours trying to find the solution, I was able to find the solution to this error.

Solution

Whenever you are deploying your code in the Microsoft Azure app service, it will not require npm runs to start, so you need to go and disable or comment out those lines, and then your code will start working as expected.

Microsoft Azure

Happy coding!