fs/promises API in TypeScript is not compiling correctly in JavaScript

The error was due to unsupported Node version 12.x which doesn’t support this require statement…

var promises_1 = require("fs/promises");

but this works

var promises_1 = require("fs").promises;

This can be solved by updating the Node to the latest.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)