awslabs / llrt

LLRT (Low Latency Runtime) is an experimental, lightweight JavaScript runtime designed to address the growing demand for fast and efficient Serverless applications.
Apache License 2.0
7.74k stars 342 forks source link

Require does not work with the `node` prefix (i.e. : node:console) #309

Closed fredbonin closed 3 months ago

fredbonin commented 3 months ago

When using require with the node: prefix, LLRT will not find the module.

To reproduce :

  let {Console} = require("node:console");
  const consoleObj = new Console({
    stdout: process.stdout,
    stderr: process.stderr,
  });

This causes issues with Powertools (#251)

richarddavison commented 3 months ago

Fixed in https://github.com/awslabs/llrt/pull/310