Lesson 15 NFT are loading and are not displayed #4059
-
Hi I have finished lesson 15 and for a certain reason I ran into an error |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 76 replies
-
Hey @NeoRusi i forked your repo and the images are being displayed. |
Beta Was this translation helpful? Give feedback.
-
@FrankYChills You copied my repo and everything worked as it should ? |
Beta Was this translation helpful? Give feedback.
-
I'm assuming you are currently getting the correct query in thegraph playground. |
Beta Was this translation helpful? Give feedback.
-
@NeoRusi print out these variables on console and see what they are printing (
loading || !listedNfts ? (
<div>Loading...</div>
)
|
Beta Was this translation helpful? Give feedback.
-
Hey @NeoRusi i don't know why its not working on your device but it is working on mine - |
Beta Was this translation helpful? Give feedback.
-
@NeoRusi This might help.Try this.. Go to your graph folder => then go to => |
Beta Was this translation helpful? Give feedback.
-
@alymurtazamemon , @FrankYChills I have tinkered with this problem and understood that the problem is in this error |
Beta Was this translation helpful? Give feedback.
-
@NeoRusi i have no idea what error is this.What's your npx and node version.Try to update them. Try to reset the account and add some goerli eth to that.Hope this works. |
Beta Was this translation helpful? Give feedback.
-
Hi @PatrickAlphaC I was following the course and I have finished hardhat-nft-marketplace but for a certain reason I ran into an error |
Beta Was this translation helpful? Give feedback.
-
I am having the same problem. I sort of bypass this problem by getting the public string TOKEN_URI from my contract. Public method 'tokenURI()' does not return the string.
I cannot figure out why |
Beta Was this translation helpful? Give feedback.
@WolfgangNI Make sure your function name matches with the one in the contract ABI and make sure your function is external or public, or you should check whether it is exist in a ABI or not. Sometimes people face this issue due to type in the useWeb3Contract params. You should also check all of the variables which you pass to useWeb3Contract, they should not be undefined.