-
Notifications
You must be signed in to change notification settings - Fork 762
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
Dependency was not found @swagger-api/apidom-reference/configuration/empty
after 3.18
to 3.19
upgrade
#3136
Comments
Hi @mrleblanc101, You're seeing this because nuxt@2 doesn't support exports and import fields. You'd probably have to overcome this by some sort of heavy aliasing, which will be very fragile. Unfortunately there's nothing we can do about it. |
Then this should be documented as a breaking change in the README and only be implemented in a Semver major... |
Hi @mrleblanc101, I understand your point of view. But we claimed for years that our minimum supported Node.js version is
We technically did not do any breaking change. We just use feature from Node.js versions we claim for years we support. We're very careful about that. What we cannot control is what various bundlers/frameworks choose to support - nuxt@2 doesn't support exports/imports, but nuxt@3 does. We bind our complatibility to Node.js version, not to any particular bundler/framework. I'm sorry that nuxt@2 stopped working for you. |
same issue. use resolutions in package.json to lock the swagger-client version like this: |
Node.js version is 12.20.0 --> Whe are on node 12.22 and when trying to update encountered the same issue. Import is just on node 12, otherwise I need yo use an experimental modules and rename for mjs. It broke our production pipeline, as @mrleblanc101 it shoud have been a major version. (https://stackoverflow.com/a/45854500) |
Hi @pp-assis, I already explained this in #3136 (comment) We didn't do any change in this package. We've started using another package (ApiDOM) which is completely compatible with Node.js >=12.20.0 which we still fully support along with testing bundling on webpack@5. ApiDOM is a direct dependency, but imaging we would use another dependency which has another indirect/transitive dependency that is using @pp-assis you provided some info in your comment, but truthfully I don't really understand it. I can successfully install and run latest version of swagger-client on [email protected] |
Maybe using UMD build fragment of swagger-client will help? More info in #3411 (comment) |
Q&A (please complete the following information)
Describe the bug you're encountering
My Nuxt 2 app stop compiling after upgrading from 3.18.5 to 3.19.0 (or higer, tried 3.19.11 and 3.20.2).
To reproduce...
Here is my package.json:
Here is my lockfile if it can be of any help.
Let me know if I cna provide anything else.
yarn.txt
The text was updated successfully, but these errors were encountered: