Skip to content

cropperJsInterop.min.js: Failed to fetch in app subdirectory #461

Description

@skagivan

I'm using Blazor Server .NET 10 and publishing to an IIS server under an application which is not the root path. Actually, it is also not in a single subdir, it is multiple levels deep and non-standardized. We typically have paths such as this:

https://foo.bar.com/portal/selfserve/dev
https://foo.bar.com/portal/selfserve/qa
https://foo.bar.com/portal/selfserve/client1
https://foo.bar.com/portal/selfserve/client2

I've reviewed/tried the suggested workarounds with CropperJsInteropOptions -> DefaultInternalPathToCropperModule and CropperJsInteropOptions -> GlobalPathToCropperModule, but those do no seem to address my scenario.

Also reviewed issue #114 for any suggestions. Do you have any other suggestions?

Cropper.Blazor v1.5.1
Blazor Server .NET 10

Failed to fetch dynamically imported module: https://foo.bar.com/_content/Cropper.Blazor/cropperJsInterop.min.js
at Cropper.Blazor.Services.BaseJsInterop.LoadModuleAsync(CancellationToken cancellationToken)
at Cropper.Blazor.Services.BaseJsInterop.TryLoadModuleAsync(CancellationToken cancellationToken)
at Cropper.Blazor.Components.CropperComponent.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
log @ blazor.server.js:1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions