Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
HMR Error When Running From CLI #910
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
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?
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