You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have successfully adapted an existing app to use code from the Bolero template,
the client app loads fine (imported by the server app) but the counter doesnt seem to respond, and i don't have a way to debug/troubleshoot what's wrong missing there.
is there any hints/stuff i could check? (i am also doing a primer on blazor as i am not an expert on the field)
pages work fine (so i suppose routing works good/fine)
but just counter doesn't co-operate and the update function doesnt hit (tried adding a breakpoint there)
when I inspect page source it contains wasm js so that seems fine
here i got this error in console (while with template sol all works good and i see some console logs in the browser), seems it cannot load the wasm correctly?
after googling seems connected to this, where instead of lowdash is looking for webassembly with a space, some formatting issues?
The issue was in the startup in my middleware path, prob also doing something wrong there now, but i got it working correctly, adding UseBlazorFrameworkFiles back also in the "root" middleware pipeline (even though wasm should be used only in /mockerysetup paths)
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
member _.Configure(app: IApplicationBuilder, env: IWebHostEnvironment) =
!app.UseBlazorFrameworkFiles()
.UseStaticFiles()
// /configure
!app.MapWhen((fun (c : HttpContext) -> c.Request.Path.ToString().Contains("/mockerysetup")),
fun (z : IApplicationBuilder) ->
!z.UseBlazorFrameworkFiles()
.UseStaticFiles()
.UseRemoting()
.UseRouting()
.UseEndpoints(fun endpoints ->
#if DEBUG
!endpoints.UseHotReload()
#endif
!endpoints.MapBlazorHub()
!endpoints.MapFallbackToBolero(fun c ->
if c.Request.Path.ToString() = "/" then
Index.oldView(c)
else
Index.page
)
)
)
.UseMiddleware<MockService>()
I have successfully adapted an existing app to use code from the Bolero template,
the client app loads fine (imported by the server app) but the counter doesnt seem to respond, and i don't have a way to debug/troubleshoot what's wrong missing there.
is there any hints/stuff i could check? (i am also doing a primer on blazor as i am not an expert on the field)
pages work fine (so i suppose routing works good/fine)
but just counter doesn't co-operate and the update function doesnt hit (tried adding a breakpoint there)
when I inspect page source it contains wasm js so that seems fine
here i got this error in console (while with template sol all works good and i see some console logs in the browser), seems it cannot load the wasm correctly?
after googling seems connected to this, where instead of lowdash is looking for webassembly with a space, some formatting issues?
https://stackoverflow.com/questions/66144275/getting-404-notfound-for-blazor-webassembly-js-framework-files-not-found
The text was updated successfully, but these errors were encountered: