-
Notifications
You must be signed in to change notification settings - Fork 252
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
util.inherits is not a function #246
Comments
My workaround is to use the
Hope this help someone while wait for a fix |
@hong-duc how do you populate window with |
In general I would recommend you use a browser-oriented polyfill if that is what you need - eg https://github.com/amvtek/EventSource |
I don't have a need for it really. I was just curious on how to do it since I would like to use this polyfill.. But because of the bug I've had to resort to using this: https://github.com/Yaffle/EventSource even if it did some political changes.. |
face the same problem too |
I tried to integrate this lib into my project using ViteJS but error is displayed:
Uncaught TypeError: util.inherits is not a function
at node_modules/eventsource/lib/eventsource.js
The text was updated successfully, but these errors were encountered: