title: GoCardless Node API error in Angular 12 app
body: <p>Trying to use the <a href="https://github.com/gocardless/gocardless-nodejs" rel="nofollow noreferrer">gocardless-nodejs</a> api module on an Angular 12 app, and followed the instructions.</p>
  <p>Importing the module as follows:</p>
  <pre><code>const gocardless = require('gocardless-nodejs');
  const constants = require(&quot;gocardless-nodejs/constants&quot;);
  </code></pre>
  <p>Then trying to create the client:</p>
  <pre><code>const client = gocardless(
      [gcAccessToken],
      // Change this to constants.Environments.Live when you're ready to go live
      constants.Environments.Sandbox
  );
  </code></pre>
  <p>but keeps showing this error:
  <code>ERROR TypeError: gocardless is not a function</code></p>