-
-
Notifications
You must be signed in to change notification settings - Fork 533
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
Error Loading Blazorise when selfhosting #3324
Comments
@samuelhurni To me it seems that your web server should communicate a Mime type of js when delivering the requested resource, which would be server configuration. Let us know how it is going. |
Hello
I haven't solved the issue because it was only with the python server a
problem. I deployed to a hosting with apache or ngnix servers and there
everything works fine.
Regards
Samuel
Am Mo., 31. Jan. 2022 um 03:14 Uhr schrieb David ***@***.***>:
… @samuelhurni <https://github.com/samuelhurni>
Can you let us know if this helped? Or are you having a different issue
then the one's reported? T
o me it seems that your web server should communicate a Mime type of js
when delivering the requested resource, which would be server configuration.
Let us know how it is going.
—
Reply to this email directly, view it on GitHub
<#3324 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANH2NQ3TCETB6D5VK53FV53UYXWARANCNFSM5L6TU3NA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hello @samuelhurni |
Was only a server config issue, with apache or ngnix no problem |
Describe the bug
I did a Blazor WASM Project with Blazorise and want to Deploy the App at my Synology NAS in a docker Container with ngInx.
First of all, I deploy the app to a folder structure. There I start to test a python http server. Wen I run the application on localhost, I get an error while loading the staring page.
The error is:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec. blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Failed to fetch dynamically imported module: http://localhost:8000/_content/Blazorise/breakpoint.js?v=0.9.5.3 TypeError: Failed to fetch dynamically imported module: http://localhost:8000/_content/Blazorise/breakpoint.js?v=0.9.5.3 Microsoft.JSInterop.JSException: Failed to fetch dynamically imported module: http://localhost:8000/_content/Blazorise/breakpoint.js?v=0.9.5.3 TypeError: Failed to fetch dynamically imported module: http://localhost:8000/_content/Blazorise/breakpoint.js?v=0.9.5.3 at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__15
1[[Microsoft.JSInterop.IJSObjectReference, Microsoft.JSInterop, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()at Blazorise.Modules.JSBreakpointModule.RegisterBreakpoint(DotNetObjectReference
1 dotNetObjectRef, String elementId) at Blazorise.Bar.OnFirstAfterRenderAsync() at Blazorise.BaseComponent.OnAfterRenderAsync(Boolean firstRender) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task )
I did it also with an empty Blazor WASM Project and then there was no error for hosting the app localy with a python server.
The text was updated successfully, but these errors were encountered: