form migrating dotnet core 2.2 to 3.1 Startup.cs file I removed this code because UseWebpackDevMiddleware is obsolete.
app.UseWebpackDevMiddle