TypeError: Cannot read properties of null (reading โonโ)
I tried:
import Web3 from 'web3' 
import Moralis from 'moralis' 
await Moralis.enableWeb3()
const web3 = new Web3(Moralis.provider)
and
import Web3 from "web3";
await Moralis.start({
  serverUrl: "YOUR_SERVER_URL",
  appId: "YOUR_APP_ID",
  web3Library: Web3,
});
await Moralis.enableWeb3();
const web3 = Moralis.web3;
But how can I use await in a react function.
 
      
    
 or was that you shown all your code?
 or was that you shown all your code?