Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

UseWebpackDevMiddleware HMR not routing  #1121

Description

@jbomhold3

Using 2.0.0-rtm-26339 the middleware for webpack dev isn't firing, and is going to default controller instead. env variable for dev is set

` app.UseStaticFiles();
app.UseAuthentication();

        JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear();
        loggerFactory.AddConsole(Config

if (env.IsDevelopment())
{

            app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions {
                HotModuleReplacement = true,
            });
            app.UseDeveloperExceptionPage();
            app.UseBrowserLink();
        }
        else
        {
            app.UseExceptionHandler("/Home/Error");
        }
        
       
        app.UseMvc(routes =>
        {
            routes.MapSpaFallbackRoute(
               name: "spa-fallback",
               defaults: new { controller = "Home", action="proxy.php?url=https%3A%2F%2Fgithub.com%2Faspnet%2FJavaScriptServices%2Fissues%2FIndex" });
            
            routes.MapRoute(
                name: "default",
                template: "{controller=Home}/{action=Index}/{id?}");

           
        });

Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request starting HTTP/1.1 GET http://localhost:5002/__webpack_hmr
Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler:Information: AuthenticationScheme: Cookies was successfully authenticated.
Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler:Information: AuthenticationScheme: OpenIdConnect was successfully authenticated.
Microsoft.AspNetCore.Authorization.DefaultAuthorizationService:Information: Authorization was successful for user: jbomhold3.
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker:Information: Executing action method WebApplicationBasic.Controllers.HomeController.Index (TownControl) with arguments ((null)) - ModelState is Valid
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor:Information: Executing ViewResult, running view at path /Views/Home/Index.cshtml.
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker:Information: Executed action WebApplicationBasic.Controllers.HomeController.Index (TownControl) in 160.5755ms`

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