share your github repo
I get this in my terminal when I run ânpm startâ and my localhost link shows this âTypeError: Cannot read properties of undefined (reading âgetNativeBalanceâ)â can anybody tell me whatâs wrong
Compiled with warnings.
src\App.jsx
Line 6:8: âTokenPriceâ is defined but never used no-unused-vars
Line 12:24: âSkeletonâ is defined but never used no-unused-vars
Line 16:8: âQuickStartâ is defined but never used no-unused-vars
Line 18:8: âTextâ is defined but never used no-unused-vars
Line 21:17: âFooterâ is assigned a value but never used no-unused-vars
src\hooks\useInchDex.js
Line 11:6: React Hook useEffect has a missing dependency: âMoralisâ. Either include it or remove the dependency array
react-hooks/exhaustive-deps
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
Hi,
There are many tokens on the BSC network but only a selection from the binance network dropdown. What needs to happen for a token to appear in this list? Could i add any BSC based token address to the list - for example this one - https://bscscan.com/token/0x2180F5cC1ddf117640963AE91868948bd3EF6838
Thanks in advance
Thank you to everyone for the help so far.
I have gotten the page to load so now I would like to make changes to the UI and explore colors, sizes etcâŚ
Whilst I am across how I can make changes using dev tools in chrome, these are temporary changes and I would like to make them more permanent to introduce my own style. Can someone advise me the best place within the boilerplate code to attempt this?
Also, I would like to be able to add a token address / search function to the Dex page so its not a matter of scrolling to find the token but people can input abbreviations or token addresses to be able to load their token of choice.
Can someone give me a push in the right direction please.
FlyBoy
When deployed, the Fiat onramper does not work. Do I have to put the API key as an environment variable or is it handled directly by Moralis?
Any idea what is this error "NoMoralisContextProviderError: Make sure to only call useMoralis within a " ?
Hey everyone!
First off, itâs been a ton of fun lurking in here and seeing how supportive and tight this community is.
Iâve got a NOOB question that I know you all can answer.
Where is the easiest place to host the boilerplate itself? I noticed that Moralis hosts their SDK on unpkg, but was at a loss as to how to proceed.
Any help is greatly appreciated!
Thanks
Got this error:
useMoralisDapp must be used within a MoralisDappProvider
Still trying to get the cryptopunks showing up in the marketplace.
Hope someone can help.
Hi @MOUAD
These are just warnings, you can ignore them. And these errors messages were fixed on the latest versions, so please update
Hey @bogdabart
Please check if you specified your server details in the .env file. Also MoralisDappProvider
was removed long time ago, now all the boilerplate hooks are inside the react-moralis
. So please make an update of the boilerplate
I think you have not added your server details to the .env
file
You need to provide it only when you are adding the plugin
Is this also updated in the final code?
It was removed from the standard` ethereum-boilerplate. It may be used in others boilerplates built on top of it.
You just need to download a new version of the ethereum-boilerplate. Or you can pull new changes in your github repo
Thanks for replying again. Iâm still stuck and getting a bit desperate. The following error appearing now again:
Attempted import error: âuseNFTTokenIdsâ is not exported from âreact-moralisâ.
Iâm pretty sure I use the last version of the boilerplate and all the other dependencies. I try to follow the exact steps in the tutorial. If I should be doing stuff differently as descibed in the tutorial I would like to know it precisely. Appreciate any help!
Thanks for the reply , i did add the server url and the application id to the env file . is there anything else i may be missing ?
hey can anyone help me with these npm install issues i already renamed safe-event-emitter to metamask/ safe-event-emitter but i havent attempted another npm install or audit fix to check if the deprication was fixed. this is just the first one i also got stumped on the second.
i tried using npm audit fix --force it yielded a few results.