title: Cannot read property 'catch' of undefined
body: <p>I am trying to use Argon2 encryption in Node, but when I try to encrypt a string, I get this error:</p>
  
  <p><code>Cannot read property 'catch' of undefined</code></p>
  
  <p>I have tried handling the errors from the promise returned by the <code>argon2.hash</code> function, but it still does not work.</p>
  
  <p>This is my code so far:</p>
  
  <pre class="lang-js prettyprint-override"><code>argon2.hash('password', {type: argon2.argon2id})
      .then(hash =&gt; {
          // do something with the hash
      }).catch(err =&gt; {
          // Handle the error
      });
  </code></pre>
  
  <p>Could anyone please help me with fixing this error?</p>