Skip to main content
2 of 2
deleted 1 character in body
Ronnie Smith
  • 18.8k
  • 7
  • 89
  • 99

This works:

import path from 'node:path'; import url from 'node:url'; const DIR_NAME = path.dirname(url.fileURLToPath(import.meta.url)); 
Ronnie Smith
  • 18.8k
  • 7
  • 89
  • 99