Microsoft.JSInterop.JSException: 'Could not find 'BlazoredModal' in 'window'. [Bug]See original GitHub issue
Describe the bug A clear and concise description of what the bug is. I’m pretty new with the webpack.config, but it seems not injecting blazored.modal.js as it should do…
To Reproduce Steps to reproduce the behavior: 1- Started the Samples/BlazorServer project 2- Client the Show Modal button on the index page… 3- Get error: Microsoft.JSInterop.JSException: 'Could not find ‘BlazoredModal’ in ‘window’.
A clear and concise description of what you expected to happen.
It seems that the BlazoredModal.activateScrollLock function is never injected in the _Host.cshtml page in the
<script src="_content/Blazored.Modal/blazored.modal.js"></script> tag.
Screenshots If applicable, add screenshots to help explain your problem.
Hosting Model (is this issue happening with a certain hosting model?):
- Blazor Server
Additional context Add any other context about the problem here.
- Created 3 years ago
- Comments:23 (7 by maintainers)
Top GitHub Comments
@frablaser .NET 5 won’t have any impact on this library and while I appreciate your concern that a library could become unmaintained, it seems your actions are a bit counter-intuitive. If you’d just used the NuGet package you would have saved yourself a day at least. You could always resort to the source code in the future if the library became stagnant.
As this isn’t an issue with the production code we ship and just a local setup issue I’m going to close this issue. Happy to keep helping you with local setup if that’s the route you want to take but there isn’t any work for us to do here.