Create
cancel
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

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?

Thanks,
Peter

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

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,878 views 0 7
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