GithubHelp home page GithubHelp logo

Comments (4)

grandEL-dsouza avatar grandEL-dsouza commented on June 21, 2024

Hey there,

Please install the packages and configure the dependencies and dev dependencies separately.

"dependencies": { "chai": "^4.5.8", }, "devDependencies": { "@wdio/mocha-framework": "^7.5.0" }

This should resolve the issue.

from browserstack-cypress-cli.

rforster-dev avatar rforster-dev commented on June 21, 2024

Thanks for the quick response.

In the package.json, we are specifying it like that. So it looks like (example):

dependancies: {
"node-fetch": "^x.x.xx",
...
}

and in my browserstack.json it has:

"npm_dependencies": {
 "node-fetch": "^x.x.xx",
}

But it still gets uploaded to browserstack through the cli as a devDependancy? As the test in the Browserstack says it cant find the module.

from browserstack-cypress-cli.

rforster-dev avatar rforster-dev commented on June 21, 2024

https://github.com/browserstack/browserstack-cypress-cli/blob/425f260bc3b27555d44f9c3c82cf7c476b8123c1/bin/helpers/packageInstaller.js#LL33C11-L33C11 on this line I can see that it simply assumes all dependancies specified in npm_dependancies should be devDependancies.

This is incorrect I would say, and should be up to the consumer to decide on if we require dependancies or devdependancies?

from browserstack-cypress-cli.

rforster-dev avatar rforster-dev commented on June 21, 2024

Closing this issue, as we have managed to get this working in our project. Whether or not publically this will be resolved I don't know, but whilst working with Browserstack we have got this working for dependancies to be installed correctly.

from browserstack-cypress-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.