Closed
Description
Expected Behavior
You can install v6.x of @middy/core and @aws-lambda-powertools/logger
Current Behavior
When installing v6.x of @middy/core you get this error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @aws-lambda-powertools/logger@2.11.0
npm ERR! Found: @middy/core@6.0.0
npm ERR! node_modules/@middy/core
npm ERR! @middy/core@"^6.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @middy/core@"4.x || 5.x" from @aws-lambda-powertools/logger@2.11.0
npm ERR! node_modules/@aws-lambda-powertools/logger
npm ERR! @aws-lambda-powertools/logger@"^2.11.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @middy/core@5.5.1
npm ERR! node_modules/@middy/core
npm ERR! peerOptional @middy/core@"4.x || 5.x" from @aws-lambda-powertools/logger@2.11.0
npm ERR! node_modules/@aws-lambda-powertools/logger
npm ERR! @aws-lambda-powertools/logger@"^2.11.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.
Code snippet
in package.json
"dependencies": {
"@aws-lambda-powertools/logger": "^2.11.0",
"@middy/core": "^6.0.0",
Steps to Reproduce
Install @middy/core v6 and @aws-lambda-powertools/logger
Possible Solution
change peerDepenedencies in @aws-lambda-powertools/logger to include v6 of @middy/core
Powertools for AWS Lambda (TypeScript) version
latest
AWS Lambda function runtime
22.x
Packaging format used
npm
Execution logs
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Shipped