sahat / megaboilerplate

Handcrafted starter projects, optimized for simplicity and ease of use.
MIT License
3.83k stars 257 forks source link

EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection. #153

Open TMcLoone opened 8 years ago

TMcLoone commented 8 years ago

Configuration

Deployed to heroku successfully but getting error EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection.

I did some digging and looks like it's something to do with webpack-hot-middleware

sahat commented 8 years ago

I can confirm it as well, but don't have any idea why would it be using webpack-hot-middleware in production.

sahat commented 8 years ago

So looks like webpack.config.js needs to be split into development and production files or add react-hot-middleware based on if process.env.NODE_ENV !== "production".

guilherme6191 commented 7 years ago

So, is there a workaround for this?

Great job with megaboilerplate btw.

abzfarah commented 6 years ago

Any solution to this?