title: node.js dotenv load is not a function
body: <p>i just updated my packages and im unable to load in my env file using the npm dotenv package.</p>
  
  <blockquote>
    <p>"dotenv": "^7.0.0", "@types/dotenv": "^6.1.0",</p>
  </blockquote>
  
  <pre><code>import dotenv from "dotenv";
  
      switch (process.env.NODE_ENV) {
              case "test":
                  break;
              case "production":
                  break;
              default:
                  dotenv.load({ path: ".env" });
          }
  </code></pre>
  
  <blockquote>
    <p>"error":{},"level":"error","message":"uncaughtException:
    dotenv_1.default.load is not a function\nTypeError:
    dotenv_1.default.load is not a function</p>
  </blockquote>