Coder Social home page Coder Social logo

Comments (5)

char0n avatar char0n commented on June 19, 2024 1

Partially addressed upstream in https://github.com/swagger-api/swagger-js/releases/tag/v3.27.9

We still need to release new version of SwaggerUI utilizing latest version of [email protected]. This should resolve the issue and will force package manager to reconciliate properly.

Reason why this happend

Dependency tree of downstream projects might contain [email protected] which still uses ramda-adjunct@4. Latest swagger-client uses directly ramda-adjunct@5, and it's expected when it reinstall that it fetches the latest ApiDOM version and consolidate the dependenices. But npm might choose not to re-consolidate and we'll get into this situation. Bundler will pull two versions of ramda-adjunct (4 and 5) and it will fail on compiling the 4, because it no longer contains isNotEmpty .
To fix this I explicitly must use latest version [email protected] (with ramda-adjunct@5 and [email protected]) and issue a new swagger-client + SwaggerUI release. This should re-consolidate the lock files properly downstream.

from swagger-ui.

char0n avatar char0n commented on June 19, 2024 1

Fix released as https://github.com/swagger-api/swagger-ui/releases/tag/v5.17.9

from swagger-ui.

char0n avatar char0n commented on June 19, 2024

Hi @simPod,

Could you try to regenerate your package-lock.json or yarn.lock and reinstall your project?

from swagger-ui.

simPod avatar simPod commented on June 19, 2024

Hi, it was regenerated by yarn install already. rm yarn.lock + yarn install does not help. The error is not caused by my lockfile but by incorrectly specifying dependencies.

Module not found: Error: ramda-adjunct tried to access ramda (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.

Required package: ramda
Required by: ramda-adjunct@virtual:df5141313e9ad6830e9e598bfb1a3514147bd28cb6d2bfdfc3c051daddff68c24f383fce7366a9570b61475de7fc5b335c9998a32b30475b74669a202d386532#npm:5.0.0 (via /Users/.../.yarn/__virtual__/ramda-adjunct-virtual-831a665b22/5/.yarn/berry/cache/ramda-adjunct-npm-5.0.0-0bc23d97d5-10c0.zip/node_modules/ramda-adjunct/es/)

Ancestor breaking the chain: swagger-client@npm:3.27.8

from swagger-ui.

char0n avatar char0n commented on June 19, 2024

Address in SwaggerUI by #9930

from swagger-ui.

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.