Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Module not found: Error: Can't resolve 'cypress-file-upload' in '/opt/atlassian/pipelines/agent/buil

I use a npm package called 'cypress-file-upload' and import it in the index.js file within cypress/support. 


In the bitbucket-pipelines.yml file, I use npm install cypress-file-upload command in the scripts in order to install that package. 


Not sure why I still see the module not found error in the pipeline. 

2 answers

Hello @Shahnaz Shariff 

Try to check your package-lock.json file. 

My problem was connected with a different CYPRESS package version between package.json and package-lock.json file

gagneet I'm New Here Oct 20, 2021

Thanks for this, needed to run the 'npm update' and 'npm install' commands to get the files sync'ed

0 votes
Peter Plewa Atlassian Team Oct 15, 2019

Hi @Shahnaz Shariff,

I would need more information to help you out here. Could you share your bitbucket-pipelines.yml file to help out with debugging? Pipelines simply runs your script from that yml file in a Docker container, can you try to run the same script in Docker in your local environment?


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

236 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you