Comments (5)
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.
Fix released as https://github.com/swagger-api/swagger-ui/releases/tag/v5.17.9
from swagger-ui.
Hi @simPod,
Could you try to regenerate your package-lock.json or yarn.lock and reinstall your project?
from swagger-ui.
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.
Address in SwaggerUI by #9930
from swagger-ui.
Related Issues (20)
- Attempted import error: 'isNotEmpty' is not exported from 'ramda' (imported as 'isNotEmpty'). HOT 3
- GET parameters not exploded when `"in": "query","style": "form","explode": true` and the request can be `oneOf` a few different objects HOT 1
- Error "'path' must begin with '/' and be relative to an individual" when endpoint path contains =
- Callback - swagger-ui /dist (standalone) JavaScript (Response Body) HOT 1
- API Responses Add required: true to enforce content in a response
- Array of multi-value prameters are always sent as muliple parameters instances
- Swagger Server URL loads previously requested url basePath but logs show correct value
- No name property is assigned to "Server" Combobox.
- 5.17.12 HOT 1
- Add a dark mode for the page
- swagger-ui-react: spec does not update on prop change and resets to default on page refresh HOT 1
- Path Parameter is not being passed through Request URL and Curl Command. HOT 3
- UI css scrambled
- Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (.btn-primary)
- Swagger-UI DownloadURL autocomplete
- Resolver error at $ref Could not resolve reference: JSON Pointer evaluation failed while evaluating token "paths" against an unexpected Element
- Idk
- Displaying value for Double numbers with dot even number is whole
- OAuth Password Authentication misses Authorization token in header HOT 1
- Docker images for version v5.17.14 is missing all non-amd64 arch images HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swagger-ui.