We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi Team,
I am using this package in angular and find my environmental details below,
I am using this package to achieve the SSE in client-side
import { EventSource } from 'eventsource'; const eventSourceUrl = 'http://localhost:3000/v1/notifications'; const eventSourceInitDict = { headers: { Authorization: 'Tokken' } }; const noticationEventSource = new EventSource(eventSourceUrl, eventSourceInitDict);
And I am facing the error like below ERROR TypeError: eventsource__WEBPACK_IMPORTED_MODULE_9__.EventSource is not a constructor
ERROR TypeError: eventsource__WEBPACK_IMPORTED_MODULE_9__.EventSource is not a constructor
The text was updated successfully, but these errors were encountered:
it is fixed by modifying the import statement as below import EventSource from 'eventsource';
import EventSource from 'eventsource';
But facing another issue like not an function #236
Sorry, something went wrong.
No branches or pull requests
Hi Team,
I am using this package in angular and find my environmental details below,
I am using this package to achieve the SSE in client-side
And I am facing the error like below
ERROR TypeError: eventsource__WEBPACK_IMPORTED_MODULE_9__.EventSource is not a constructor
The text was updated successfully, but these errors were encountered: