Skip to content
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

Serverless Auto Swagger is not working with serverless V4 #138

Open
mericci opened this issue Oct 24, 2024 · 2 comments
Open

Serverless Auto Swagger is not working with serverless V4 #138

mericci opened this issue Oct 24, 2024 · 2 comments

Comments

@mericci
Copy link

mericci commented Oct 24, 2024

I have a version conflict between [email protected] and [email protected]. It's seem that [email protected] still requires serverless version ^2 or ^3, but serverless ^3 is going to be manteined only for 2024, so I need to update the serverless framework version, and I have this error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/serverless
npm ERR!   dev serverless@"^4.4.7" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer serverless@"^2 || ^3" from [email protected]
npm ERR! node_modules/serverless-auto-swagger
npm ERR!   dev serverless-auto-swagger@"^3.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

image

@v-koronevski-es
Copy link

v-koronevski-es commented Jan 16, 2025

@mericci You can overide it in package.json like:

  "overrides": {
    "serverless-auto-swagger": {
      "serverless": "^4.0.0"
    }
  },

@luisdelahoz
Copy link

@mericci You can overide it in package.json like:

  "overrides": {
    "serverless-auto-swagger": {
      "serverless": "^4.0.0"
    }
  },

Great, it worked. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants