You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Failed to compile.
./node_modules/ramda-adjunct/es/isNonEmptyArray.js
Attempted import error: 'isNotEmpty' is not exported from'ramda' (imported as 'isNotEmpty').
Import trace for requested module:
./node_modules/ramda-adjunct/es/isNonEmptyArray.js
./node_modules/ramda-adjunct/es/index.js
./node_modules/swagger-client/es/execute/index.js
./node_modules/swagger-ui-react/swagger-ui.js
./node_modules/swagger-ui-react/index.cjs
./node_modules/ramda-adjunct/es/isNonEmptyString.js
Attempted import error: 'isNotEmpty' is not exported from'ramda' (imported as 'isNotEmpty').
Import trace for requested module:
./node_modules/ramda-adjunct/es/isNonEmptyString.js
./node_modules/ramda-adjunct/es/index.js
./node_modules/swagger-client/es/execute/index.js
./node_modules/swagger-ui-react/swagger-ui.js
./node_modules/swagger-ui-react/index.cjs
./node_modules/ramda-adjunct/es/overlaps.js
Attempted import error: 'isNotEmpty' is not exported from'ramda' (imported as 'isNotEmpty').
Import trace for requested module:
./node_modules/ramda-adjunct/es/overlaps.js
./node_modules/ramda-adjunct/es/index.js
./node_modules/swagger-client/es/execute/index.js
./node_modules/swagger-ui-react/swagger-ui.js
./node_modules/swagger-ui-react/index.cjs
> Build failed because of webpack errors
To reproduce...
Steps to reproduce the behavior:
Npm build Next while using swagger-ui-react
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.
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
The text was updated successfully, but these errors were encountered: