-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_content/LeafletForBlazor/LeafletMapFunctionalities.js net::ERR_ABORTED 404 (Not Found) #41
Comments
Hello sir, The AddMapToBlazorPage project uses the Map control for which we have not updated and will not be supported due to some design mistakes. |
Hmm, I tried to create a clean new project, just to be sure the issue is not related to my existing code or settings and, strangely enough, I am getting a different error now: Visual Studio 2022 17.10.4 Create new project Blazor Web App Framework: .NET 8.0 Authentication type: none Configure for HTTPS: yes Interactive render mode: Server Interactivity location: Per page/component Create Add NuGet package LeafletForBlazor 2.0.6.8 to the generated project. Add @using directive to the _Imports.razor file:
Main page (Home.razor) - add render mode:
Main page (Home.razor) - add component:
Main page (Home.razor) - add code:
Visual Studio main menu - Debug - Start Debugging (F5) The default browser opens (Google Chrome in my case) with following error:
|
Hello sir, Please archive and send me the project. |
E-mail sent. |
Thanks a lot! |
Hi! For anyone having this issue, I was having this exact error with the basic setup: _Imports.razor :
My page component :
The error went away when I put the RealTimeMap component in a div:
This workaround is probably a good hint to figure out what's causing the issue. |
Hello,
I'm testing the AddMapToBlazorPage example on Blazor Interactive Server 8.0 and I'm getting the following error:
GET http://localhost:5555/_content/LeafletForBlazor/LeafletMapFunctionalities.js net::ERR_ABORTED 404 (Not Found)
(anonymous) @ blazor.web.js:1
(anonymous) @ blazor.web.js:1
beginInvokeJSFromDotNet @ blazor.web.js:1
_invokeClientMethod @ blazor.web.js:1
_processIncomingData @ blazor.web.js:1
connection.onreceive @ blazor.web.js:1
i.onmessage @ blazor.web.js:1
blazor.web.js:1 [2024-07-24T07:08:14.760Z] Error: Microsoft.JSInterop.JSException: Failed to fetch dynamically imported module: http://localhost:5555/_content/LeafletForBlazor/LeafletMapFunctionalities.js
TypeError: Failed to fetch dynamically imported module: http://localhost:5555/_content/LeafletForBlazor/LeafletMapFunctionalities.js
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
at LeafletForBlazor.CoreJsInterop.LoadMapPartialAsync(ParametersInitialization parameters, ParametersInitialization esri_api_parameters, ParametersInitialization plugins_parameters, ParametersInitialization ui_controls_parameters, ParametersInitialization images_overlay, DotNetObjectReference
1 dotNetObject) at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state) at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.PostAsync[TState](Task antecedent, Action
1 callback, TState state)Any ideas, please?
The text was updated successfully, but these errors were encountered: