Use ES Modules in Node.js & Fix “cannot use import statement outside a module” Error
ECMAScript modules in Node.js, how to use import & export modules in Node.js & fix the “cannot use import statement outside module” error
Published in
4 min readJul 3, 2022
This article explains ECMAScript modules in Node.js, and how to use import and export modules…