Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Bitbucket pipeline when running tsc to build typescript project

Puja Agarwal
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 10, 2024

I am running a docker command in Bitbucket pipeline to build an image.
It is a typescript project using tsc to build the project but the pipeline keeps failing at tsc with following error:

 

#21 345.7 Problem executing tsc
3677
#21 345.7 Error during build undefined
3678
#21 345.7 error Command failed with exit code 1.
3679
The docker build without any issues locally.

Docker image - node:14-buster
Typescript version - 
4.1.5

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 12, 2024

Hi Puja and welcome to the community!

The error message you posted here doesn't specify the cause, so we can't determine what is causing this without additional info.

One possible cause that I can think of is that the docker service may not have enough memory. Service containers get 1024 MB memory by default. You can adjust this to a larger value and see if that resolves the issue. The memory allocated to the Docker service can be adjusted with the following definition in your bitbucket-pipelines.yml file (the value is in MB)

definitions:
services:
docker:
memory: 2048

If you have a regular 1x size step and no other services in this step, you can allocate up to 3072 MB to the docker service container.

If this doesn't help, you can create a ticket with the support team and provide the build URL for further investigation. The support ticket will be visible only to you and Atlassian staff, so anything you post there won't be publicly visible.

You can create a ticket via https://support.atlassian.com/contact/#/, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events