V17 Failed to Fetch Dynamically imported Module

Posted by: dtujo on 2 June 2023, 1:26 am EST

  • Posted 2 June 2023, 1:26 am EST - Updated 2 June 2023, 2:15 am EST

    Following this blog post:

    https://www.grapecity.com/blogs/make-a-web-reporting-app-using-blazor-reporting-tool-microservices

    I set up the server and then the web assembly project exactly in the blog post.

    When I navigate to the report viewing page I receive the following error:

    blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
          Unhandled exception rendering component: Failed to fetch dynamically imported module: https://localhost:7231/_content/GrapeCity.ActiveReports.Blazor.Viewer/viewerWrapper.js
          TypeError: Failed to fetch dynamically imported module: https://localhost:7231/_content/GrapeCity.ActiveReports.Blazor.Viewer/viewerWrapper.js
    Microsoft.JSInterop.JSException: Failed to fetch dynamically imported module: https://localhost:7231/_content/GrapeCity.ActiveReports.Blazor.Viewer/viewerWrapper.js
    TypeError: Failed to fetch dynamically imported module: https://localhost:7231/_content/GrapeCity.ActiveReports.Blazor.Viewer/viewerWrapper.js
       at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__16`1[[Microsoft.JSInterop.IJSObjectReference, Microsoft.JSInterop, Version=6.0.0.0, Culture=neutral, PublicKeyToken=****************]].MoveNext()
       at GrapeCity.ActiveReports.Blazor.Viewer.ReportViewer.Render(IJSRuntime jSRuntime, String element, InitializationOptions options)
       at GrapeCity.ActiveReports.Blazor.Viewer.ReportViewer.OnAfterRenderAsync(Boolean firstRender)
       at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
    
  • Posted 5 June 2023, 8:44 pm EST

    Hi Daniel,

    Please share a sample application replicating this issue so we can reproduce this behavior at our end and get back to you accordingly. As for now, I would suggest you to refer to the following sample application as the attached sample seems to be working fine at my end:

    Samples: BlazorViewer

  • Posted 6 June 2023, 12:08 am EST

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels