D
D
Denis_13342021-04-03 16:50:24
Node.js
Denis_1334, 2021-04-03 16:50:24

__dirname is not defined?

Why if put type:modulein package.json.
Is __dirname not global?
How it is possible to correct it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Belyaev, 2021-04-03
@bingo347

https://www.npmjs.com/package/commonjs-variables-f...

L
Lynn "Coffee Man", 2021-04-03
@Lynn

RTFM day of some
https://nodejs.org/dist/latest-v15.x/docs/api/esm....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question