Answers for "__dirname is not defined in es module scope"

0

__dirname is not defined in es module scope

const {pathname: root} = new URL('../src', import.meta.url)
// no necesitar más el path.join luego lo que hacemos es acceder a la propiedad pathname del objeto URL que hemos creado.
Posted by: Guest on September-02-2021

Code answers related to "__dirname is not defined in es module scope"

Browse Popular Code Answers by Language