Custom require either serviceProvider or priv key error

Please provide the following details too when asking for help in this category:

  • SDK Version: 7.0.0
    Hi , i am trying to run the tkey example at GitHub - tkey/tkey-example: Demo app for tkey SDK
    I replace the google verifier details with my verifier ,
    the redirect url for my verifier is http ://localhost:3000/serviceworker/redirect

and the network url with my alchemy url for mumbai testnet . When i try and create a private key , i am able to login but facing this error when trying to initialize tKey.

CoreError: Custom require either serviceProvider or priv key in getGenericMetadataWithTransitionStates
at CoreError.default (errors.ts:72:1)
at ThresholdKey.getGenericMetadataWithTransitionStates (core.ts:934:1)
at ThresholdKey.initialize (core.ts:236:1)
at initializeNewKey (App.tsx:133:1)

I referred the docs and i have pasted the service worker file in the public/serviceWorker/sw.js as it says in the docs at Install Web3Auth Core Kit tKey SDK Libraries | Documentation

I am not making a build or anything like that. Just trying to run the example on my local machine. Please help me resolve this issue , thanks.

Hey ! I had the same problem.
Try this examples