reactjsazureazure-static-website-hosting

Getting: Could not detect any platform in the source directory. for Deploying React on Azure Static site


Im deploying on azure static web app but getting the error, which says: Could not detect any platform in the source directory. Error: Could not detect the language from repo.

i tried changing the app_location to /src but still showing could not detect the language from repo.

  # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
          app_location: "/src" # App source code path
          api_location: "" # Api source code path - optional
          output_location: "/build" # Built app content directory - optional

Solution

  • Glad @Bhanuvidh Mansinghani, that the given reference worked to resolve your issue.

    I have found the similar issue from the GitHub of mslearn-staticwebapp repository that states could not detect the language from repository in static web app workflow.

    Many customers faced the similar issue and fixed with the following steps: