Error SDk 1.1.0

I did this:

 if (!isWeb3Enabled && !isWeb3EnableLoading) {
 
     enableWeb3()
 
  }

and i receive this error

Missing web3 instance, make sure to call Moralis.enableWeb3() or Moralis.authenticate()

you can check this thread: Moralis JS-SDK v1.0.0 [beta] (Ethers.js support)

No I can’t , nothing from this post Moralis JS-SDK v1.0.0 [beta] (Ethers.js support) works.

you can post in that thread then

so if you delete this part the error will be gone? also btw you put this in useEffect right?

Ok, I solved it by putting this

 if (!isWeb3Enabled && !isWeb3EnableLoading) {
 
     enableWeb3()
 
  }

in my Nav component , which each page contains.
Thanks guys and have a nice day.

2 Likes