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
With version 2.0.0 I get an error as soon as I receive events:
Uncaught TypeError: URL is not a constructor
at parseEventStreamLine (eventsource.js:296:19)
at exports.IncomingMessage.eval (eventsource.js:250:11)
at exports.IncomingMessage.emit (events.js:153:5)
at exports.IncomingMessage.Readable.read (_stream_readable.js:469:26)
at flow (_stream_readable.js:813:34)
at resume_ (_stream_readable.js:796:3)
at afterTickTwo (index.js:28:10)
at eval (process.js:5:12)
With version 1.1.0 everything works all right. Even if I install version 1.1.0 and after that version 2.0.0.
Maybe due to dependency issues?
I am using webpack for building the package.
Since version 1.1.0 works fine for me I am going to wait with the upgrade.
The text was updated successfully, but these errors were encountered:
tim-ebner
changed the title
Error "url" is not constructor
Error: "URL is not a constructor"
Mar 4, 2022
Still receiving the same error in the browser (Uncaught TypeError: URL is not a constructor) using eventsource-polyfill.js bundled with webpack 5.72.0.
Having a look at the bundled file, webpack adds the following import:
/* WEBPACK VAR INJECTION */(function(process, Buffer) {var parse = __webpack_require__(6).parse var URL = __webpack_require__(6).URL
Hi,
first of all thanks for the great library.
With version 2.0.0 I get an error as soon as I receive events:
With version 1.1.0 everything works all right. Even if I install version 1.1.0 and after that version 2.0.0.
Maybe due to dependency issues?
I am using webpack for building the package.
Since version 1.1.0 works fine for me I am going to wait with the upgrade.
The text was updated successfully, but these errors were encountered: