Could not find property of window when doing JS interop with Blazor
问题 Hello i am trying to call a method from a js file from Blazor . My file structure is like this: -root -JSInterop.cs -js(folder) -meth.js (file containing the js method) I keep getting the following error : Could not find 'methods' in 'window'. **Cs class that calls the js ** public class JSInterop { public static async Task<string> ChangeText() { try { var data = await JSRuntime.Current.InvokeAsync<string>("./js/meth/methods.print","mymessage"); Console.WriteLine($"ReturnedFromJS:{data}");