I am getting this error for Provider. I am following the example for MPC Core-kit popup flow and here’s my code snippet.
const init = async () => {
await coreKitInstance.init();
if (coreKitInstance.provider) {
setProvider(coreKitInstance.provider);
}
setCoreKitStatus(coreKitInstance.status);
};
init();
}, []);
useEffect(() => {
if (provider) {
const web3 = new Web3(provider);
setWeb3(web3);
}
}, [provider])