Example: Node 14 didn't support ECMAScript module. So now Node 16 supports them. import * as fs from "fs" // Let's use an ECMA Script Before (Node 14): const fs = require('fs') Take Aways: Use node 16 Use ES imports instead of commonjs imports import * as fs from ‘fs’ ----- const fs = require(‘fs’)