iso8859 / BlazorWheelZoom

Zoom and move image with Blazor - minimal javascript
Apache License 2.0
13 stars 2 forks source link

.NET 5 BlazorServer app: 'WheelZoomJsFunctions' was undefined #4

Closed ferminv closed 2 years ago

ferminv commented 2 years ago

Hello guys, im getting this error: Error: Microsoft.JSInterop.JSException: Could not find 'WheelZoomJsFunctions.boundingRect' ('WheelZoomJsFunctions' was undefined).

I have everything defined as the readme.md file says.

This is my _Host.cshtml:

<!DOCTYPE html>

ComitPresupuestosWeb
An error has occurred. This application may no longer respond until reloaded. An unhandled exception has occurred. See browser dev tools for details. Reload 🗙

I have installed the library through Nuget Package Manager.

Thanks in advance..

iso8859 commented 2 years ago

Hi,

There was an error in readme.md I should have put

<script src="_content/iso8859.blazor.wheel-zoom/wheelzoomblazor.js"></script>

Fixed now.

Remi

ferminv commented 2 years ago

It works like a charm now! You are the man Remi. Cheers

Fermin