I am trying to use Web3.js instead of Ether.js by following this solution Moralis JS-SDK v1.0.0 [beta] (Ethers.js support) and
react-moralisa githhub package
But I am using MoralisProvider from react-moralis package. I am not sure what I should do after this. I tried build but I am getting build errors. @cryptokid
function MyApp({Component, pageProps, router}) {
const { initialize, isInitialized } = useMoralis()
const initializeMoralis = () => {
initialize({
appId: moralisAppID,
serverUrl: moralisServerUrl,
web3Library: Web3,
})
}
return (
<>
<MoralisProvider initializeOnMount={false} >
<LayoutWrapper {...pageProps}>
<Component {...pageProps} />
</LayoutWrapper>
</MoralisProvider>
{initializeMoralis()}
</>
);
}