Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket angular pipeline is getting failed

bb.admin July 6, 2023

my pipeline is getting failed few hours back it was working fine 

I am getting this error :-

 

./node_modules/@angular/cdk/fesm2020/portal.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
TypeError: /opt/atlassian/pipelines/agent/build/node_modules/@angular/cdk/fesm2020/portal.mjs: Cannot read properties of undefined (reading 'file')

./node_modules/@angular/cdk/fesm2020/scrolling.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
TypeError: /opt/atlassian/pipelines/agent/build/node_modules/@angular/cdk/fesm2020/scrolling.mjs: Cannot read properties of undefined (reading 'file')

./node_modules/@angular/material/fesm2020/grid-list.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
TypeError: /opt/atlassian/pipelines/agent/build/node_modules/@angular/material/fesm2020/grid-list.mjs: Cannot read properties of undefined (reading 'file')

few hours back it was working fine , please help me on this.

 

image_2023_07_06T11_55_48_313Z.png

 

2 answers

0 votes
krzysiekryba
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!
July 7, 2023

I had the same error and solution in my case was to update ngx-toastr to:"ngx-toastr": "^16.0.2"`

0 votes
Muhammad Zubair July 7, 2023

I'm also facing same issue for all my angular builds since yesterday. Builds started failing all at once. 

./node_modules/@angular/material/fesm2015/checkbox.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
127
TypeError: /opt/atlassian/pipelines/agent/build/node_modules/@angular/material/fesm2015/checkbox.mjs: Cannot read properties of undefined (reading 'file')
./node_modules/@angular/common/fesm2015/common.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
57
TypeError: /opt/atlassian/pipelines/agent/build/node_modules/@angular/common/fesm2015/common.mjs: Cannot read properties of undefined (reading 'file')


Screenshot_12.png

Suggest an answer

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

Atlassian Community Events