title: Unable to deploy config to Solana network
body: <p>I'm uploading <strong>nft</strong> asset to Solana network and got this error.</p>
  <pre><code>TypeError: Cannot read properties of undefined (reading 'map')
  </code></pre>
  <p>I'm not sure what to adjust though I've referred to numerous tutorials. Below is the code snippet in upload script of <strong>metaplex</strong>:</p>
  <pre><code>if (i === 0 &amp;&amp; !cacheContent.program.uuid) {
          // initialize config
          log.info(`initializing config`);
          try {
            const res = await createConfig(anchorProgram, walletKeyPair, {
              maxNumberOfLines: new BN(totalNFTs),
              symbol: manifest.symbol,
              sellerFeeBasisPoints: manifest.seller_fee_basis_points,
              isMutable: mutable,
              maxSupply: new BN(0),
              retainAuthority: retainAuthority,
              creators: manifest.properties.creators.map(creator =&gt; {
                return {
                  address: new PublicKey(creator.address),
                  verified: true,
                  share: creator.share,
                };
              }),
            });
            cacheContent.program.uuid = res.uuid;
            cacheContent.program.config = res.config.toBase58();
            config = res.config;
  
            log.info(
              `initialized config for a candy machine with publickey: ${res.config.toBase58()}`,
            );
  
            saveCache(cacheName, env, cacheContent);
          } catch (exx) {
            log.error('Error deploying config to Solana network.', exx);
            throw exx;
          }
        }
  </code></pre>
  <p>And I was uploading the assets through CLI using the following command:</p>
  <pre><code>ts-node ~/metaplex-master/js/packages/cli/src/candy-machine-cli.ts upload /nft-assets --env devnet --keypair ~/.config/solana/devnet.json
  </code></pre>