Closed Jharmony closed 6 months ago
Hey Jharmony. I had the same problem. I was able to fix it by adding a JSON.stringify() while getting the metadata from the contract. I updated the line in the [tokenId].tsx file.
line 371
contractMetadata = await JSON.stringify(contract.metadata.get());
Hope that helps.
Hey friends! We recently updated this template to the latest version of our SDK which hopefully resolves this issue. If you are still having any issues with the template please let us know!
After following your details instruction, which includes deploying my marketplacev3 contract and importing my ERC-721A collection on the Thirdweb dashboard, I continue to get an error on the "buy" component of the dapp. The NFTs from my collection do load successfully on the grid, but when I attempt to load anyone NFT to see further details this error shows up:
Server Error Error: Error serializing
.contractMetadata.descriptionreturned from
getStaticPropsin "/token/[contractAddress]/[tokenId]". Reason:
undefinedcannot be serialized as JSON. Please use
nullor omit this value.
I've also submitted a similar issue when attempting to load the marketplace contract and imported collection contract on the help section of the official discord which could be found here: