You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using bluebird Promise as default the hot reload doesn't work in v9
The error we get - EventSource's response has a MIME type ("text/plain") that is not "text/event-stream". Aborting the connection..
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Set global.Promise = require('bluebird')
Run dev server
See error in browser console
Expected behavior
Hot reload should work
System information
Version of Next.js: 9.x
Additional context
Our projects infrastructure uses bluebird Promise and to make sure all of our projects are aligned we set global.Promise = require('bluebird') (which is a common pattern).
Once we tried to upgrade to v9 we started getting errors related to hot reloading and basically it hasn't been working since then.
The error we get is EventSource's response has a MIME type ("text/plain") that is not "text/event-stream". Aborting the connection..
If we remove that global Promise override the hot reload works again (yet, other parts of our infra. stop working..)
Since everything worked perfectly fine in the latest v8, I was wondering what changed in v9+ that might have affected this so I could try and solve this.
Thanks
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 31, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Describe the bug
When using
bluebird
Promise as default the hot reload doesn't work in v9The error we get -
EventSource's response has a MIME type ("text/plain") that is not "text/event-stream". Aborting the connection..
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
global.Promise = require('bluebird')
Expected behavior
Hot reload should work
System information
Additional context
Our projects infrastructure uses bluebird Promise and to make sure all of our projects are aligned we set
global.Promise = require('bluebird')
(which is a common pattern).Once we tried to upgrade to v9 we started getting errors related to hot reloading and basically it hasn't been working since then.
The error we get is
EventSource's response has a MIME type ("text/plain") that is not "text/event-stream". Aborting the connection..
If we remove that global Promise override the hot reload works again (yet, other parts of our infra. stop working..)
Since everything worked perfectly fine in the latest v8, I was wondering what changed in v9+ that might have affected this so I could try and solve this.
Thanks
The text was updated successfully, but these errors were encountered: