New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMR Error When Running From CLI #910

Closed
jkruer01 opened this Issue May 2, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@jkruer01

jkruer01 commented May 2, 2017

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?

@SteveSandersonMS

This comment has been minimized.

Show comment
Hide comment
@SteveSandersonMS

SteveSandersonMS May 2, 2017

Member

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

Member

SteveSandersonMS commented May 2, 2017

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

@AlwaysAbhl001

This comment has been minimized.

Show comment
Hide comment
@AlwaysAbhl001

AlwaysAbhl001 Dec 12, 2017

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

AlwaysAbhl001 commented Dec 12, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment