Javascriptservices: HMR Error When Running From CLI

Created on 2 May 2017  路  2Comments  路  Source: aspnet/JavaScriptServices

If I run my application from Visual Studio by clicking on the green arrow, it launches on port 60186 and everything works fine.

However, if I launch the application from the cli using
dotnet run

I get errors in Chrome's debugger that state "EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection."

How can I fix these errors when running from the CLI?

Most helpful comment

Sounds like your CLI-launched application is running in production mode. You need to run it in development mode. Please see https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments

All 2 comments

Sounds like your CLI-launched application is running in production mode. You need to run it in development mode. Please see https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments

@SteveSanderson What ever, After deployed our environment is not dev on that case Hotmodule wont be used. so then how to handle this issue ?

Was this page helpful?
0 / 5 - 0 ratings