title: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined and code: 'ERR_INVALID_ARG_TYPE'
body: <pre><code>import dotenv from &quot;dotenv&quot;;
  import path from 'path';
  
  dotenv.config({
    path: path.resolve(path.__dirname, `${process.env.NODE_ENV}.env`),
  });
  
  export default config = {
    NODE_ENV: process.env.NODE_ENV || &quot;development&quot;,
    HOST: process.env.HOST || &quot;localhost&quot;,
    PORT: process.env.PORT || 3001,
  };
  </code></pre>
  <p>When i try to make config.js file to work multiple .env files but i get this error.os : windows 10</p>