Version: Deno 2.5.4
Hi,
I would like to report a behavior that I observed in Deno when running the following code snippet:
import { open } from "node:fs/promises";
const fs = await open("file.txt", "r");
fs.readLines().on("line", (data) => {})
Create a file named file.txt with some random content and execute the snippet in Deno.
This module is implemented in Node but I get the following error when I run the code in Deno:
PS D:\HIWI\RESULTS\25_10_2025> deno run -A .\a.js
error: Uncaught (in promise) TypeError: fs.readLines is not a function
fs.readLines().on("line", (data) => {})
^
at file:///D:/HIWI/RESULTS/25_10_2025/a.js:8:4
Version: Deno 2.5.4
Hi,
I would like to report a behavior that I observed in Deno when running the following code snippet:
Create a file named file.txt with some random content and execute the snippet in Deno.
This module is implemented in Node but I get the following error when I run the code in Deno: