-
Notifications
You must be signed in to change notification settings - Fork 255
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
ERROR TypeError: (intermediate value)(intermediate value)(intermediate value).request is not a function #236
Comments
I am getting the same error in Angular 13
|
This can happen if you don't polyfill In my case, with React + Vite, I had to add import { defineConfig } from 'vite';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
export default defineConfig({
plugins: [
nodePolyfills({
include: [
// 👇 eventsource 👇
'events',
'http',
'https',
'url',
'util',
// 👆 eventsource 👆
],
}),
// ...
],
// ...
}); |
@sam-6174 , Thanks for the post. Is this working for you? |
Correct 👍 |
I spent a lot of time trying to figure out what is wrong, but in the end it turned out that the solution is as simple as it gets.
Many replies on Stackoverflow and in GH issues are actually misleading as they suggest using I tried many different combinations with that and did not manage to get both development server and production build to work the same. With the config above, everything works smoothly. |
|
Hi Team,
I am using this package in the Angular application. Please find angular environment details below

I am trying to use SSE through this package by using the following code
But unfortunately, it throws the following error
ERROR TypeError: (intermediate value)(intermediate value)(intermediate value).request is not a function
The text was updated successfully, but these errors were encountered: