ProjectOpenSea / embeddable-nfts

Easily embed OpenSea listings in your website!
330 stars 139 forks source link

TypeError: Cannot read property 'WyvernExchange' of undefined #11

Closed Benjythebee closed 4 years ago

Benjythebee commented 4 years ago

I have this other issue present with mainnet NFTs:

image

it infinitely loads with the following error:

image

This is using this asset

0xb932a70a57673d89f4acffbe830e8ed7f75fb9e0 token id: 5536 network: mainnet

Obviously I've tried with other mainnet nfts and it won't work.

However, rinkeby items seem to work:

image

Here is the code I used for both cards.

<nft-card tokenAddress="0xb932a70a57673d89f4acffbe830e8ed7f75fb9e0"
              tokenId="5536"
              network="mainnet"
              width="15rem">
            </nft-card>

I have tried using both <script src="https://unpkg.com/embeddable-nfts/dist/nft-card.min.js"></script>

and <script src="https://unpkg.com/embeddable-nfts@0.4.6/dist/nft-card.min.js"></script>

taylorjdawson commented 4 years ago

@Benjythebee there was an issue with using mainnet as the network name. Should be fixed now in v0.4.7. If you could try that and let me know if it works and I'll close this, thank you!

Benjythebee commented 4 years ago

Switched it to 0.4.7 and it works!

image

Thanks!