use-metamask
use-metamask copied to clipboard
Missing dependency when build with vite
I'm building a website with the latest version of [email protected] and [email protected].
I'm seeing the following error:
this is the line 93:
after a little bit of googling I saw that create-react-app has somewhere this package: regenerator runtime since I'm not using creat-react-app I don't have that package.
I don't know why, but on Firefox sometimes the website works... and sometimes it doesn't.
All my code works fine if I try create-react-app, but with vite it does not. I can create a stackblitz if you please, just let me know.
I fix this bug adding regenerator runtime to my website. even if I'm not using it I just import it on my entry point and eventing works fine.
Cheers! 🍻