Open davidchavezgrant opened 1 year ago
Same here, did you solve it?
Sorry, I forgot to add
<script src="_content/Nethereum.Metamask.Blazor/NethereumMetamask.js"></script>
at the index.html
after that
Call window.NethereumMetamaskInterop.IsMetamaskAvailable()
at the console, should return true now.
Call window.NethereumMetamaskInterop.EnableEthereum()
at the console, should popup metamask to connect to this website.
It appears as though running the Blazor server template fails with
dotnet run
on macos Ventura (13.1) due to a Javascript dependency not being included at runtime. It seems like the file in question isNethereumMetamask.js
fromNethereum.Metamask.Blazor
I'm using the version defined in this template, which at the time of writing is 4.8.0
The error disappears when I manually add that file and update the references in
_Layout.razor
. I assume the error has something to do with howNethereum.Metamask.Blazor
is being bundled and published to NuGet.The full stack trace upon loading the home page is below.