Open jme-s opened 5 months ago
It looks like your dependency tree is corrupted or ambiguous.
I recommend to run npm dedupe
or (uninstalling swagger-ui-react and installing it again)
It looks like your dependency tree is corrupted or ambiguous.
I recommend to run
npm dedupe
or (uninstalling swagger-ui-react and installing it again)
Thanks for the response however both of those options yield the same issue. Have deleted package-lock and node_modules for full reinstall, then dedupe (default: hoisted) and unfortunately the exact same issue occurs.
I can reproduce this issue locally and on the pipelines which are cleaned every run.
Try inspecting the package-lock.json and see if there are multiple installations of ramda
. It seems that your dep tree might contain more versions of ramda. Given that ramda still uses 0.x.y
versioning scheme and they are introducing breaking changes arbitrarily it might happen. If this is the case npm overrides could be used to resolve the issue.
Having same problem
Is there a solution to this? I'm having the same issue. I've upgraded to the latest version. Issue persists.
Try to put this into your package.json file:
{
...
"overrides": {
"swagger-client": {
"ramda": "=0.30.1",
"ramda-adjunct": "=5.1.0"
}
}
...
}
We're pinning versions to make sure that SwaggerUI will always install the correct versions for itself independent of other dependencies in your tree.
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition: N/A
Swagger-UI configuration options: N/A
Describe the bug you're encountering
nextjs 13.5.6 - build process failure swagger-ui-react -> swagger-client -> ramda-adjunct There appears to be an error in implementation using ramda-adjunct@5 potentially with importing isNotEmpty as I am receiving the following issue on build:
To reproduce...
Steps to reproduce the behavior: Npm build Next while using swagger-ui-react
Expected behavior
Imports will resolve
Screenshots
Additional context or thoughts
Tried Node 16.x.x, 18.x.x 20.x.x - all with the same issue. EDIT: Found this article you wrote @char0n https://medium.com/ramda-adjunct/chore-ramda-adjunct-v5-0-0-905ca0ae6b81