Continuous deployment to Azure App Service from Azure DevOps

Fatima, Maria 20 Reputation points
2024-01-18T18:12:08.0233333+00:00

Hi,

I am trying to set up a CI/CD. using this link

https://learn.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment?tabs=repos#configure-the-deployment-source
from AzureGit. I am getting the following errorScreenshot 2024-01-18 at 1.02.05 PM

This is my folder structure of the main branch
Screenshot 2024-01-18 at 1.07.21 PM

These are my env
Screenshot 2024-01-18 at 1.11.03 PM

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,933 questions
0 comments No comments
{count} votes

Accepted answer
  1. Konstantinos Passadis 19,586 Reputation points MVP
    2024-01-18T18:59:12.3233333+00:00

    Hello @Fatima, Maria !

    Thank you for the logs

    The Type error: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'? suggests a problem with how paths are being resolved in your TypeScript configuration.

    This typically occurs when your TypeScript code includes imports with non-relative paths, but the tsconfig.json file does not have the baseUrl property set correctly.

    Check your tsconfig.json . You likely need to set the baseUrl property. This property defines the base directory from which non-relative module names are resolved.

    1. For example, if your TypeScript files are using imports like import something from 'src/myModule', you need to set the baseUrl to the root directory of your source files in tsconfig.json:
    {
      "compilerOptions": {
        "baseUrl": "./", // or the path to your source root
        // ... other options
      }
    }
    

    Reference : https://lightrun.com/solutions/facebook-create-react-app-add-baseurl-and-paths-in-tsconfigjson-and-jsconfigjson/

    AND :

    https://github.com/parcel-bundler/parcel/issues/202

    I hope this helps!

    The answer or portions of it may have been assisted by AI Source: ChatGPT Subscription

    Kindly mark the answer as Accepted and Upvote in case it helped! Regards

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Konstantinos Passadis 19,586 Reputation points MVP
    2024-01-18T18:40:39.8566667+00:00

    Hello @Fatima, Maria !

    Welcome to Microsoft QnA! I would like to ask :

    Does the APP Service Plan has Windows as Hosting Environment ?

    Can you provide more logs ?

    Did you followed also this : https://learn.microsoft.com/en-us/azure/app-service/deploy-azure-pipelines?tabs=yaml

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards  


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.