serverless/serverless-python-requirements

Serverless Framework version 4 support?

Closed this issue · 2 comments

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Use case description

I want to use this plugin with serverless framework v4. I am surprised this issue has not come up yet.

The install fails on dependencies:

sls plugin install -n serverless-python-requirements
✖ npm ERR! code ERESOLVE
  npm ERR! ERESOLVE unable to resolve dependency tree
  npm ERR! 
  npm ERR! While resolving: undefined@undefined
  npm ERR! Found: serverless@4.1.11
  npm ERR! node_modules/serverless
  npm ERR!   dev serverless@"4" from the root project
  npm ERR! 
  npm ERR! Could not resolve dependency:
  npm ERR! peer serverless@"^2.32 || 3" from serverless-python-requirements@6.1.0
  npm ERR! node_modules/serverless-python-requirements
  npm ERR!   dev serverless-python-requirements@"6.1.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.
  npm ERR! 

Proposed solution (optional)

No response

As npm suggests --force and --legacy-peer-deps are at least current workaround. Not ideal at all though.

Hey, thanks for raising this issue. Just a heads up - a new version that supports Serverless Framework v4 has been released.