Provider not available. use .'setProvider'

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])

@shripawar0411 Welcome Aboard!

I see you are using Brave Browser. Can you please switch to Google Chrome and let me know.

Hello @shripawar0411
So when I try testing with mpc core kit popup flow, it had no error.
Also your code snippet has no difference with ours.
Can you explain more details of your code?