michielpost / MetaMask.Blazor

Use MetaMask with Blazor WebAssembly
MIT License
44 stars 21 forks source link

_content/metaMaskJsInterop.js missing when publishing #17

Closed Chris-Grundy closed 2 years ago

Chris-Grundy commented 2 years ago

When an WASM Blazor app that uses the NuGet package or references the MetaMask.Blazor project is published, the app is broken due to the file _content/metaMaskJsInterop.js not being included

It can be fixed by manually deploying the file to the expected location.

This was tested by building the sample App exactly as it is in the repo as version 1.7 and it runs perfectly

Then tested again by publishing to a folder (using Visual Studio 2022 folder publishing), copying the folder to a Linux server with Nginx, and the app produces an unhandled exception during initialization

Then fixed by manually deploying the JS file

Chris-Grundy commented 2 years ago

Please disregard, the file is not missing. I opened this by mistake.

michielpost commented 2 years ago

No problem. Happy to hear it is solved.