title: 'RegeneratorRuntine not defined' error when trying to make async calls from a react App
body: <p>I have looked at other threads which are about the same error, but none of them seemed to be helpful in my case.</p>
  
  <p>I have a react app, it is a fork of this code: <a href="https://github.com/stellar/laboratory" rel="nofollow noreferrer">https://github.com/stellar/laboratory</a>.</p>
  
  <p>The change I am trying to make is I am adding another library from which I will be eventually calling some functions.</p>
  
  <p>The errors are originating from the reducers file I added, below is the portion I added into it. The errors are related to the bcoin library and the create_wallet function.</p>
  
  <pre><code>var id, passphrase, witness, watchOnly, accountKey;
   witness = false;
   watchOnly = false;
   var {WalletClient} = require('../../bcoin/bclient.js');
   var {Network} = require('../../bcoin/bcoin.js');
   var network = Network.get('regtest');
  
   var walletOptions = {
       network: network.type,
       port: network.walletPort,
       apiKey: 'api-key'
     }
   var walletClient = new WalletClient(walletOptions);
   var options;
  
  function operations(state = defaultOperations, action) {
    let targetOpIndex, newOps;
    switch (action.type) {
    case LOAD_STATE:
      if (action.slug === SLUG.UTXOTX) {
        return defaultOperations;
      }
      break;
    case 'ADD_OPERATION':
      return Array.prototype.concat(state, {
        id: action.opId,
        name: '',
        attributes: {},
      });
    case 'CREATE_WALLET':
       options = {
           passphrase: action.newAttributes.passphrase,
           witness: witness,
           watchOnly: watchOnly,
           accountKey: action.newAttributes.accountKey
       };
       id = action.newAttributes.walletId;
        (async() =&gt; {
            const result = await walletClient.createWallet(id, options);
            console.log(result);
          })();
  </code></pre>
  
  <p>When I try to run the app, there are no errors on the terminal, however nothing shows up on the UI. And in the developer console, an error shows up which says, "RegeneratorRuntine is not defined". And I am not using webpack or babel, even though they are added in the package.json file.</p>
  
  <p>If more information is required, feel free to ask.</p>