title: TypeError: chargebee.subscription.list is not a function
body: <p>When I'm trying to make request with Chargebee I'm getting an error</p>
  <blockquote>
  <p>TypeError: this.chargebee.subscription.list is not a function</p>
  </blockquote>
  <p>But it's defined when I'm trying to debug it :<a href="https://i.stack.imgur.com/Xt2rz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xt2rz.png" alt="enter image description here" /></a></p>
  <p>This is function where I'm making the request:</p>
  <pre><code> async test(){
      return new Promise((resolve, reject) =&gt; {
        this.chargebee.subscription.list({
          limit: 2,
          &quot;plan_id[in]&quot;: [&quot;basic&quot;, &quot;no_trial&quot;]
        }).request(function (error, result) {
          if (error) {
            //handle error
            console.log(error);
          } else {
            resolve(result)
            for (var i = 0; i &lt; result.list.length; i++) {
              var entry = result.list[i]
              console.log(entry);
              var subscription = entry.subscription;
              var customer = entry.customer;
              var card = entry.card;
            }
          }
        });
      })
    }
  </code></pre>
  <p>Why we have error that function is undefined, when it is defined?
  Appreciate any help, Thanks!</p>