When using ESM in Node.js you don't have `__dirname` anymore and you have to do a little dance to get something equivalent.
It can be a bit tedious, but I recently found out from @delvedor that there's an amazing package called `desm` that will make things easier! ๐
#nodejs