This works:
import path from 'node:path'; import url from 'node:url'; const DIR_NAME = path.dirname(url.fileURLToPath(import.meta.url)); This works:
import path from 'node:path'; import url from 'node:url'; const DIR_NAME = path.dirname(url.fileURLToPath(import.meta.url));