Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Older version libraries coming as dependency #99

Closed
8 tasks
mumeshr opened this issue Jun 23, 2020 · 2 comments
Closed
8 tasks

Older version libraries coming as dependency #99

mumeshr opened this issue Jun 23, 2020 · 2 comments

Comments

@mumeshr
Copy link

mumeshr commented Jun 23, 2020

  • Steps to reproduce
    Add ibm-watson@5.6 library to package.json, it will add ibm-cloud-sdk-core@2.4.1 as dependency. In return ibm-cloud-sdk-core@2.4.1 is adding ts-jest@24.3.0 instead of latest. And this version is having a dependency on yargs-parser. Which is failing for contrast.
  • Expected behavior
    The application should run with contrast but its failing when contrast is enabled. As yargs-parser referred is older version and creating problems.
  • Actual behavior
    Contrast enabled server fail to start and gives a message.
    "ERR npm WARN ts-jest@24.3.0 requires a peer of jest@>=24 <25 but none is installed. You must install peer dependencies yourself."
  • Node version
    10.16.3
  • SDK version
    IBM SDK for Node.js Buildpack v4.3-20200606-1928

When you open an issue for a feature request, please add as much detail as possible:

  • A descriptive title starting with the service name
    ibm-cloud-sdk-core@2.4.1
    SDK for Node.js
    umanam
    umanam
    23 Jun 2020 (an hour ago)

I'm using ibm-watson@5.6 and it is using ibm-cloud-sdk-core@2.4.1. This is using ts-jest as dependency and loading older version ts-jest@24.3.0. There is the problem and its failing in contrast build.

I get error "ERR npm WARN ts-jest@24.3.0 requires a peer of jest@>=24 <25 but none is installed. You must install peer dependencies yourself." while deploying application, even fixing with these suggestion its not helping. At the end its conflicting on version of yargs-parser library referenced in ts-jest. Please fix the issue with ibm-cloud-sdk-core package.json, so that it loads correct version of dependencies.

  • A description of the problem you're trying to solve
    We want to enable fetch of latest ts-jest library with latest ibm-cloud-sdk-core@2.4.1.
    Testing --- Repackage library ibm-cloud-sdk-core and invoke in a project then try if its pulling latest ts-jest or not.
  • A suggested solution if possible
@dpopp07
Copy link
Member

dpopp07 commented Jul 17, 2020

Thanks for the issue. We are removing ts-jest as a dependency in the next version, which will be v3.0.0, and this problem will go away.

@dpopp07
Copy link
Member

dpopp07 commented Jul 23, 2020

We were actually able to fix it without a breaking change, this is now fixed in v2.4.2

@dpopp07 dpopp07 closed this as completed Jul 23, 2020
JurajNyiri pushed a commit to JurajNyiri/node-sdk-core that referenced this issue Aug 22, 2024
Generated SDK source code using:
- Generator version 3.21.0
- Specification version 0.0.29
- Automation (cloudant-sdks) version 77fe850
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants