As [Geoff][1] pointed out the following code returns not the module's path but working directory. ``` import path from 'path'; const __dirname = path.resolve(); ``` works with `--experimental-modules` [1]: https://stackoverflow.com/users/446564/geoff