universal-vue / uvue

Vue CLI plugin to create universal Vue applications with ease
https://universal-vue.github.io/docs/
MIT License
127 stars 13 forks source link

KoaAdapter response mime type "text/html" error #14

Closed Tjark-Kuehl closed 5 years ago

Tjark-Kuehl commented 5 years ago

Describe the bug When in 'serve' mode it displays this error that doesn't do anything wrong but it exists. EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection. It only happens when I have the KoaAdapter in my server.config.json . My friend doesn't have the problem with the same versions of koa and uvue so its project specific.

To Reproduce Clone the repo, npm install and execute npm run dev. Then you see a login screen and the error should appear in the console.

Repo

Expected behavior The error doesn't show up

Additional context

Please indicate versions of:

node: 11.x
vue-cli: Newest
uvue: Newest
os: Ubuntu 18.10 / Windows 10
browser: Google Chrome 71