Skip to content

Serverless Auto Swagger is not working with serverless V4 #138

@mericci

Description

@mericci

I have a version conflict between serverless@4.4.7 and serverless-auto-swagger@3.0.0. It's seem that serverless-auto-swagger@3.0.0 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: backend@1.1.0
npm ERR! Found: serverless@4.4.7
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 serverless-auto-swagger@3.0.0
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions