Skip to content

Bug: @aws-lambda-powertools/commons is not declared in batch package #4485

@Grmiade

Description

@Grmiade

Expected Behavior

Should be able to resolve @aws-lambda-powertools/commons/utils/env in the batch package.

Current Behavior

✘ [ERROR] Could not resolve "@aws-lambda-powertools/commons/utils/env"

node_modules/.pnpm/@aws-lambda-powertools+batch@2.26.0/node_modules/@aws-lambda-powertools/batch/lib/esm/BasePartialBatchProcessor.js:1:33:
1 │ ...getStringFromEnv } from '@aws-lambda-powertools/commons/utils/env';

Code snippet

N/A

Steps to Reproduce

  1. Upgrade to 2.26.0
  2. Try to bundle this version with esbuild

Possible Solution

No response

Powertools for AWS Lambda (TypeScript) version

latest

AWS Lambda function runtime

22.x

Packaging format used

npm

Execution logs

Metadata

Metadata

Assignees

Labels

batchThis item relates to the Batch Processing UtilitybugSomething isn't workingconfirmedThe scope is clear, ready for implementation

Type

No type

Projects

Status

Coming soon

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions