Forums

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

Pipelines: Angular build failing (ERROR in Error: Child compilation failed: Entry module not found)

Deleted user June 28, 2018

I have configured bitbucket-pipelines with my code (Angular 5) in bitbucket. But each time I try to run the build it fails with the message below (in my local machine the build works fine).

ERROR in Error: Child compilation failed: 
Entry module not found:
Error: Can't resolve '/opt/atlassian/pipelines/agent/b uild/src/index.html' in '/opt/atlassian/pipelines/agent/build':
Error: Can't resolve '/opt/atlassian/pipelines/agent/build/src/index.html' in '/opt/atlassian/pipelines/agent/build' 

I tried everything possible but I run out of options. This is my bitbucket-pipelines.yml:

image: trion/ng-cli-karma
pipelines:
  branches:
    feature/*:
      - step:
          name: Setup & Test
          caches:
            - node
          script:
            - npm install gulp-cli -g
            - npm install @angular/cli -g
            - npm install
            - ng test --watch=false
            - ng build --prod

 Thank you!

1 answer

1 accepted

0 votes
Answer accepted
Deleted user July 3, 2018

Figured out that I was git ignoring the index.html, which is fine in my case (I am using another one as the start of the HTML file) I changed the index config in the angular.cli file and now works.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events