Answers for "nodejs ReferenceError: __dirname is not defined after enabling es6"

6

ReferenceError: __dirname is not defined

import path from 'path';
const __dirname = path.resolve();
Posted by: Guest on June-08-2021

Code answers related to "nodejs ReferenceError: __dirname is not defined after enabling es6"

Browse Popular Code Answers by Language