Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import node:crypto when using AWS Lambda Powertools logger module #294

Closed
Tracked by #251
fredbonin opened this issue Mar 22, 2024 · 1 comment
Closed
Tracked by #251
Assignees

Comments

@fredbonin
Copy link
Contributor

To reproduce

import crypto from "node:crypto";

export const handler = async (event: any) => {
    const randomInt = crypto.randomInt(16);
    expect(typeof randomInt).toEqual("number");

    return "Hello, world!";
};
@fredbonin fredbonin self-assigned this Mar 22, 2024
fredbonin added a commit to fredbonin/llrt that referenced this issue Mar 24, 2024
fbonin added a commit to fredbonin/llrt that referenced this issue Mar 24, 2024
fbonin added a commit to fredbonin/llrt that referenced this issue Mar 24, 2024
fbonin added a commit to fredbonin/llrt that referenced this issue Mar 24, 2024
fredbonin added a commit to fredbonin/llrt that referenced this issue Mar 26, 2024
fredbonin added a commit to fredbonin/llrt that referenced this issue Mar 26, 2024
@richarddavison
Copy link
Contributor

Fixed by #306

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants