-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
I am using [email protected]
together with @aws-lambda-powertools/[email protected]
.
I'm getting heap out of memory during compilation when import statement is:
import { z } from 'zod';
If I change the import to zod/v4
, the OOM is solved, but I get compilation issues since imports in @aws-lambda-powertools
are import { z } from 'zod';
Here is a reproducibile issue:
import { z, ZodType } from 'zod/v4';
import { JSONStringified } from '@aws-lambda-powertools/parser/helpers';
const apiGatewayEventSchema = <T extends ZodType>(bodySchema: T) => {
return z.object({
body: JSONStringified(bodySchema),
});
};
I don't understand why the issue #4952 was closed. This is blocking the migration to version 4 unfortunately.
Metadata
Metadata
Assignees
Labels
No labels