how to fix requireStack: [ '/home/site/wwwroot/node_modules/.bin/react-scripts' ]

Focus DevTeam 0 Reputation points
2024-05-23T11:21:04.7433333+00:00

had the following error after successfully deploying my react app to azure using GitHub actions.
Screenshot 2024-05-23 at 11.18.34

workflow:

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,155 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 19,621 Reputation points Microsoft Employee
    2024-05-24T08:49:20.8+00:00

    @Focus DevTeam Thank you for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.

    As mentioned in the above logs, could you please enable the diagnostic logging and review the container logs/ log stream logs of the app service to troubleshoot/understand the issue and also add this application setting "WEBSITES_CONTAINER_START_TIME_LIMIT" = 1800 as well.

    You can also make use of WebApp Down detector under Availability and performance in Diagnose and solve problems of you webapp for initial troubleshooting.

    Hope this helps, let me know if you have any further questions on this.

    0 comments No comments